lib/script/engine.rb in script-0.0.2 vs lib/script/engine.rb in script-0.0.3

- old
+ new

@@ -11,9 +11,18 @@ @steps << Script::Step.new(headline, block) end def run @steps.each do |step| + puts Script::Output.started(step) step.run + puts Script::Output.result(step) + + abort_run if step.result == :failed end + end + + def abort_run + # TODO: Print the result per steps table + abort end end