Class: RobotArmy::RemoteEvaler

Inherits:
Object
  • Object
show all
Defined in:
lib/robot-army/remote_evaler.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(connection, command) ⇒ RemoteEvaler

Returns a new instance of RemoteEvaler.



4
5
6
7
# File 'lib/robot-army/remote_evaler.rb', line 4

def initialize(connection, command)
  @connection = connection
  @command = command
end

Instance Attribute Details

#commandObject (readonly)

Returns the value of attribute command.



2
3
4
# File 'lib/robot-army/remote_evaler.rb', line 2

def command
  @command
end

#connectionObject (readonly)

Returns the value of attribute connection.



2
3
4
# File 'lib/robot-army/remote_evaler.rb', line 2

def connection
  @connection
end

#optionsObject (readonly)

Returns the value of attribute options.



2
3
4
# File 'lib/robot-army/remote_evaler.rb', line 2

def options
  @options
end

#proxiesObject (readonly)

Returns the value of attribute proxies.



2
3
4
# File 'lib/robot-army/remote_evaler.rb', line 2

def proxies
  @proxies
end

Instance Method Details

#execute_commandObject



9
10
11
12
13
# File 'lib/robot-army/remote_evaler.rb', line 9

def execute_command
  @options, @proxies = RobotArmy::EvalBuilder.build(command)
  send_eval_command
  return loop_until_done
end