class Caravan::Command

Public Class Methods

run(cmd, debug = false) click to toggle source
# 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