Module: SystemWithTweaks

Defined in:
lib/dolzenko/includable_with_options.rb

Instance Method Summary collapse

Instance Method Details

#system(*args) ⇒ Object



72
73
74
75
76
77
# File 'lib/dolzenko/includable_with_options.rb', line 72

def system(*args)
  puts "Executing command: #{ args.join(" ") }" if @@system_with_tweaks_options[:echo]
  result = Kernel.system(*args)
  raise "Command #{ args.join(" ") } exited with a nonzero exit status" if @@system_with_tweaks_options[:raise_exceptions]
  result
end