Sha256: 18b53178903a1f0a9f95faf249befc9803e5950e0d6713e05c37dd577c296032
Contents?: true
Size: 710 Bytes
Versions: 13
Compression:
Stored size: 710 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.dup) step.info.each do |k,v| case v when nil next when Exception puts Log.color(:title, "Exception") Log.exception v else puts [Log.color(:title, k), Log.fingerprint(v)] * " = " end rescue next end
Version data entries
13 entries across 13 versions & 1 rubygems