lib/script/engine.rb in script-0.0.3 vs lib/script/engine.rb in script-0.0.4
- old
+ new
@@ -1,8 +1,9 @@
class Script::Engine
def initialize
@steps = []
+ @shareables = {}
end
def steps
@steps
end
@@ -12,10 +13,10 @@
end
def run
@steps.each do |step|
puts Script::Output.started(step)
- step.run
+ step.run(@shareables)
puts Script::Output.result(step)
abort_run if step.result == :failed
end
end