lib/grumlin/step.rb in grumlin-0.13.1 vs lib/grumlin/step.rb in grumlin-0.14.0
- old
+ new
@@ -2,12 +2,12 @@
module Grumlin
class Step < AnonymousStep
attr_reader :client
- def initialize(pool, name, *args, previous_step: nil)
- super(name, *args, previous_step: previous_step)
+ def initialize(pool, name, *args, configuration_steps: [], previous_step: nil, **params)
+ super(name, *args, previous_step: previous_step, configuration_steps: configuration_steps, **params)
@pool = pool
end
def next
to_enum.next
@@ -34,10 +34,10 @@
@pool.acquire do |client|
client.write(bytecode(no_return: true))
end
end
- def step(step_name, args)
- self.class.new(@pool, step_name, *args, previous_step: self)
+ def step(step_name, *args, **params)
+ self.class.new(@pool, step_name, *args, previous_step: self, configuration_steps: @configuration_steps, **params)
end
end
end