Sha256: 6bf43b29039ef3e53b6ae3878a51bf2e63e8cb9c261ff434d56560e6f6f48fd4

Contents?: true

Size: 508 Bytes

Versions: 6

Compression:

Stored size: 508 Bytes

Contents

#!/usr/bin/env ruby

require 'scout'

$0 = "scout #{$previous_commands.any? ? $previous_commands*" " + " " : "" }#{ File.basename(__FILE__) }" if $previous_commands

options = SOPT.setup <<EOF

Show info from job

$ #{$0} [<options>] <step_path>

-h--help Print this help
EOF
if options[:help]
  if defined? scout_usage
    scout_usage 
  else
    puts SOPT.doc
  end
  exit 0
end

path = ARGV.first
raise MissingParameterException.new :step_path if path.nil?
step = Step.load(path)

puts step.info.to_json

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
scout-gear-8.0.0 scout_commands/workflow/info
scout-gear-7.3.0 scout_commands/workflow/info
scout-gear-7.2.0 scout_commands/workflow/info
scout-gear-7.1.0 scout_commands/workflow/info
scout-gear-6.0.0 scout_commands/workflow/info
scout-gear-5.2.0 scout_commands/workflow/info