Method: Script::Output.result

Defined in:
lib/script/output.rb

.result(step) ⇒ Object



12
13
14
15
16
17
18
19
20
21
# File 'lib/script/output.rb', line 12

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