module YAVDB::Utils::Executor

Public Class Methods

run(cmd) click to toggle source
# File lib/yavdb/utils/exec.rb, line 25
def self.run(cmd)
  puts "[Running] #{cmd}" if Constants::DEBUG
  output = `#{cmd}`
  {
    :output => output,
    :success? => $CHILD_STATUS.success?
  }
end