Class: Remoting::LocalCommander

Inherits:
Commander show all
Defined in:
lib/remoting/local_commander.rb

Instance Method Summary collapse

Methods inherited from Commander

#exec

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