Sha256: 2271294cb1fa3664c8acffa4ab86028f970791433d3cf060a8eaf2e7108ff104
Contents?: true
Size: 872 Bytes
Versions: 3
Compression:
Stored size: 872 Bytes
Contents
module Dynflow module Testing class DummyExecutionPlan extend Mimic mimic! ExecutionPlan attr_reader :id, :planned_plan_steps, :planned_run_steps, :planned_finalize_steps def initialize @id = Testing.get_id.to_s @planned_plan_steps = [] @planned_run_steps = [] @planned_finalize_steps = [] end def world @world ||= DummyWorld.new end def add_run_step(action) @planned_run_steps << action action end def add_finalize_step(action) @planned_finalize_steps << action action end def add_plan_step(klass, action) @planned_plan_steps << action = DummyPlannedAction.new(klass) action end def switch_flow(*args, &block) block.call end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
dynflow-0.5.0 | lib/dynflow/testing/dummy_execution_plan.rb |
dynflow-0.4.1 | lib/dynflow/testing/dummy_execution_plan.rb |
dynflow-0.4.0 | lib/dynflow/testing/dummy_execution_plan.rb |