Class: Remoting::RemoteCommander
- Defined in:
- lib/remoting/remote_commander.rb
Instance Attribute Summary collapse
-
#interactive ⇒ Object
readonly
Returns the value of attribute interactive.
-
#login ⇒ Object
readonly
Returns the value of attribute login.
Instance Method Summary collapse
-
#do_exec(cmds) ⇒ Object
overrides.
-
#initialize(login, *args) ⇒ RemoteCommander
constructor
A new instance of RemoteCommander.
- #remote(cmds) ⇒ Object
Methods inherited from Commander
Constructor Details
#initialize(login, *args) ⇒ RemoteCommander
Returns a new instance of RemoteCommander.
8 9 10 11 12 |
# File 'lib/remoting/remote_commander.rb', line 8 def initialize(login, *args) = args. @login = login @interactive = !![:interactive] end |
Instance Attribute Details
#interactive ⇒ Object (readonly)
Returns the value of attribute interactive.
7 8 9 |
# File 'lib/remoting/remote_commander.rb', line 7 def interactive @interactive end |
#login ⇒ Object (readonly)
Returns the value of attribute login.
7 8 9 |
# File 'lib/remoting/remote_commander.rb', line 7 def login @login end |
Instance Method Details
#do_exec(cmds) ⇒ Object
overrides
15 16 17 |
# File 'lib/remoting/remote_commander.rb', line 15 def do_exec(cmds) remote(cmds) end |