Sha256: 032ecd9b24c943d0f040b126919236c09d5e960cca3e221f52d27860cbbdc64b
Contents?: true
Size: 452 Bytes
Versions: 1
Compression:
Stored size: 452 Bytes
Contents
class Script::Engine def initialize @steps = [] end def steps @steps end def register_step(headline, block) @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
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
script-0.0.3 | lib/script/engine.rb |