Sha256: a7debae0df43a25a4de89844f706bb9e7b2cefb889071a0fc3466e5dd81a49d4
Contents?: true
Size: 333 Bytes
Versions: 16
Compression:
Stored size: 333 Bytes
Contents
class RunUtils def self.run(command, options = {}) default_options = { :raise_on_fail => true } options = default_options.merge(options) puts "Executing: #{command}" success = system(command) if !success && options[:raise_on_fail] raise "Command failed: #{command}" end success end end
Version data entries
16 entries across 16 versions & 1 rubygems