Class: Remoting::LocalCommander
- Defined in:
- lib/remoting/local_commander.rb
Instance Method Summary collapse
-
#do_exec(cmds) ⇒ Object
overrides.
- #local(cmds) ⇒ Object
Methods inherited from Commander
Instance Method Details
#do_exec(cmds) ⇒ Object
overrides
7 8 9 |
# File 'lib/remoting/local_commander.rb', line 7 def do_exec(cmds) local(cmds) end |
#local(cmds) ⇒ Object
11 12 13 14 15 |
# File 'lib/remoting/local_commander.rb', line 11 def local(cmds) runline = cmds.map{|c| "#{c} 2>&1"}.join(";") # puts "[LOCAL] Executing '#{runline}' ..." puts `#{runline}` end |