class Punchblock::CommandNode

Public Class Methods

new(*args) click to toggle source
Calls superclass method
# File lib/punchblock/command_node.rb, line 9
def initialize(*args)
  super
  @response = FutureResource.new
end

Public Instance Methods

response(timeout = nil) click to toggle source
# File lib/punchblock/command_node.rb, line 28
def response(timeout = nil)
  @response.resource timeout
end
response=(other) click to toggle source
# File lib/punchblock/command_node.rb, line 32
def response=(other)
  return if @response.set_yet?
  @response.resource = other
  execute!
rescue StateMachine::InvalidTransition => e
  e.message << " for command #{self}"
  raise e
rescue FutureResource::ResourceAlreadySetException
end