class SystemRunner

Class that responsible for running bash script

Public Instance Methods

run(command) click to toggle source
# File lib/adx_toolkit/system_runner.rb, line 7
def run(command)
  p "Running => #{command.chomp}"
  system(command) || raise("Error running #{command}")
end
run_with_output(command) click to toggle source
# File lib/adx_toolkit/system_runner.rb, line 12
def run_with_output(command)
  # p "Running => #{command.chomp}"
  output = `#{command} 2>&1` || raise("Error running #{command}")
  output.chomp
end