Module: CommandRunner

Defined in:
lib/codespicuous/commandrunner.rb

Class Method Summary collapse

Class Method Details

.run(command) ⇒ Object



8
9
10
11
12
# File 'lib/codespicuous/commandrunner.rb', line 8

def self.run(command)
  output = `#{command} 2>&1`
  raise SystemCommandFailed, "message" + output unless $?.success?
  output
end