Sha256: bd622250550cdbd03d7c06300f348e7120f08da4ca03003e98a0013bb193e5e8

Contents?: true

Size: 301 Bytes

Versions: 27

Compression:

Stored size: 301 Bytes

Contents

require "mixlib/shellout"

module Omnibus
  module RSpec
    module ShellHelpers
      def shellout!(command, options = {})
        cmd = Mixlib::ShellOut.new(command, options)
        cmd.environment["HOME"] = "/tmp" unless ENV["HOME"]
        cmd.run_command
        cmd
      end
    end
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
omnibus-9.0.24 spec/support/shell_helpers.rb
omnibus-9.0.23 spec/support/shell_helpers.rb
omnibus-9.0.22 spec/support/shell_helpers.rb
omnibus-9.0.17 spec/support/shell_helpers.rb
omnibus-9.0.12 spec/support/shell_helpers.rb
omnibus-9.0.11 spec/support/shell_helpers.rb
omnibus-9.0.8 spec/support/shell_helpers.rb
omnibus-8.3.2 spec/support/shell_helpers.rb
omnibus-8.2.2 spec/support/shell_helpers.rb
omnibus-8.1.15 spec/support/shell_helpers.rb
omnibus-8.0.15 spec/support/shell_helpers.rb
omnibus-8.0.9 spec/support/shell_helpers.rb
omnibus-7.0.34 spec/support/shell_helpers.rb
omnibus-7.0.13 spec/support/shell_helpers.rb
omnibus-7.0.12 spec/support/shell_helpers.rb
omnibus-6.1.9 spec/support/shell_helpers.rb
omnibus-6.1.7 spec/support/shell_helpers.rb
omnibus-6.1.4 spec/support/shell_helpers.rb
omnibus-6.0.30 spec/support/shell_helpers.rb
omnibus-6.0.25 spec/support/shell_helpers.rb