Module: Judo::Util

Defined in:
lib/judo/util.rb

Class Method Summary collapse

Class Method Details

.system_confirmed(cmd) ⇒ Object



3
4
5
6
# File 'lib/judo/util.rb', line 3

def self.system_confirmed(cmd)
  system cmd
  raise "Command #{cmd} failed with exit code #{$?.to_i}" unless $?.success?
end