Class: Caravan::Command

Inherits:
Object
  • Object
show all
Defined in:
lib/caravan/command.rb

Class Method Summary collapse

Class Method Details

.run(cmd, debug = false) ⇒ Object



4
5
6
7
8
# File 'lib/caravan/command.rb', line 4

def run(cmd, debug = false)
  output = `#{cmd}`
  Caravan::Message.debug(cmd) if debug
  return $CHILD_STATUS.exitstatus, output
end