Class: RobotArmy::RemoteEvaler
- Defined in:
- lib/robot-army/remote_evaler.rb
Instance Attribute Summary collapse
-
#command ⇒ Object
readonly
Returns the value of attribute command.
-
#connection ⇒ Object
readonly
Returns the value of attribute connection.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#proxies ⇒ Object
readonly
Returns the value of attribute proxies.
Instance Method Summary collapse
- #execute_command ⇒ Object
-
#initialize(connection, command) ⇒ RemoteEvaler
constructor
A new instance of RemoteEvaler.
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
#command ⇒ Object (readonly)
Returns the value of attribute command.
2 3 4 |
# File 'lib/robot-army/remote_evaler.rb', line 2 def command @command end |
#connection ⇒ Object (readonly)
Returns the value of attribute connection.
2 3 4 |
# File 'lib/robot-army/remote_evaler.rb', line 2 def connection @connection end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
2 3 4 |
# File 'lib/robot-army/remote_evaler.rb', line 2 def @options end |
#proxies ⇒ Object (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_command ⇒ Object
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 |