Sha256: 851ec40667f628c24e870ea4fca21dfdf2e1920898739df3a0b06a9ad077086b

Contents?: true

Size: 540 Bytes

Versions: 14

Compression:

Stored size: 540 Bytes

Contents

# frozen_string_literal: true
module Dynflow
  module Testing
    class DummyPlannedAction
      attr_accessor :output, :plan_input
      include Mimic

      def initialize(klass)
        mimic! klass
        @output = ExecutionPlan::OutputReference.new(
            Testing.get_id.to_s, Testing.get_id, Testing.get_id)
      end

      def execute(execution_plan, event, from_subscription, *args)
        @plan_input = args
        self
      end

      def run_step_id
        @run_step_id ||= Testing.get_id
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
dynflow-1.8.2 lib/dynflow/testing/dummy_planned_action.rb
dynflow-1.8.1 lib/dynflow/testing/dummy_planned_action.rb
dynflow-1.8.0 lib/dynflow/testing/dummy_planned_action.rb
dynflow-1.7.0 lib/dynflow/testing/dummy_planned_action.rb
dynflow-1.6.11 lib/dynflow/testing/dummy_planned_action.rb
dynflow-1.6.10 lib/dynflow/testing/dummy_planned_action.rb
dynflow-1.6.8 lib/dynflow/testing/dummy_planned_action.rb
dynflow-1.6.7 lib/dynflow/testing/dummy_planned_action.rb
dynflow-1.6.6 lib/dynflow/testing/dummy_planned_action.rb
dynflow-1.6.5 lib/dynflow/testing/dummy_planned_action.rb
dynflow-1.6.4 lib/dynflow/testing/dummy_planned_action.rb
dynflow-1.6.3 lib/dynflow/testing/dummy_planned_action.rb
dynflow-1.6.2 lib/dynflow/testing/dummy_planned_action.rb
dynflow-1.6.1 lib/dynflow/testing/dummy_planned_action.rb