module Ding::Helpers

Public Instance Methods

run_cmd(cmd) click to toggle source

NOTE: only for commands where we are interested in the effect as unless verbose is turned on, stdout and stderr are suppressed

# File lib/ding/helpers.rb, line 5
def run_cmd(cmd)
  if self.options[:verbose]
    puts "$ #{cmd}"
  else
    cmd << ' &>/dev/null '
  end
  system cmd
end