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

Version Path
saucelabs-adapter-0.9.2 lib/saucelabs_adapter/run_utils.rb
saucelabs-adapter-0.9.1 lib/saucelabs_adapter/run_utils.rb
saucelabs-adapter-0.9.0 lib/saucelabs_adapter/run_utils.rb
saucelabs-adapter-0.8.24 lib/saucelabs_adapter/run_utils.rb
saucelabs-adapter-0.8.22 lib/saucelabs_adapter/run_utils.rb
saucelabs-adapter-0.8.19 lib/saucelabs_adapter/run_utils.rb
saucelabs-adapter-0.8.18 lib/saucelabs_adapter/run_utils.rb
saucelabs-adapter-0.8.17 lib/saucelabs_adapter/run_utils.rb
saucelabs-adapter-0.8.16 lib/saucelabs_adapter/run_utils.rb
saucelabs-adapter-0.8.12 lib/saucelabs_adapter/run_utils.rb
saucelabs-adapter-0.8.11 lib/saucelabs_adapter/run_utils.rb
saucelabs-adapter-0.8.10 lib/saucelabs_adapter/run_utils.rb
saucelabs-adapter-0.8.8 lib/saucelabs_adapter/run_utils.rb
saucelabs-adapter-0.8.7 lib/saucelabs_adapter/run_utils.rb
saucelabs-adapter-0.8.5 lib/saucelabs_adapter/run_utils.rb
saucelabs-adapter-0.8.4 lib/saucelabs_adapter/run_utils.rb