Sha256: b6b5efe3b9d34613d24ffa090919e256eb9a7e9ad1012bdcd82bd0af90e95483

Contents?: true

Size: 464 Bytes

Versions: 4

Compression:

Stored size: 464 Bytes

Contents

module Dynflow
  class Action::Suspended
    attr_reader :execution_plan_id, :step_id

    def initialize(action)
      @world             = action.world
      @execution_plan_id = action.execution_plan_id
      @step_id           = action.run_step_id
    end

    def event(event, future = Future.new)
      @world.event execution_plan_id, step_id, event, future
    end

    def <<(event = nil)
      event event
    end

    alias_method :ask, :event
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
dynflow-0.7.9 lib/dynflow/action/suspended.rb
dynflow-0.7.8 lib/dynflow/action/suspended.rb
dynflow-0.7.7 lib/dynflow/action/suspended.rb
dynflow-0.7.6 lib/dynflow/action/suspended.rb