Sha256: cbd72ce57cc4c7bb01e9c0ec1f81a19e366b323d771ea718086a64a7a30308a3
Contents?: true
Size: 446 Bytes
Versions: 3
Compression:
Stored size: 446 Bytes
Contents
module Script::Output module_function def started(step) [ separator, "Started: #{step.headline}", "" ].join("\n").colorize(:yellow) end def result(step) color = :green if step.result == :succeded color = :red if step.result == :failed [ "", "#{step.result.capitalize}: #{step.headline}", separator ].join("\n").colorize(color) end def separator "-" * 80 end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
script-1.0.0 | lib/script/output.rb |
script-0.0.4 | lib/script/output.rb |
script-0.0.3 | lib/script/output.rb |