Sha256: 5c9f641c7ad5ab5be13d16fbd4823fc937ae46fd6e4b87f45b30b0071002ca51

Contents?: true

Size: 290 Bytes

Versions: 22

Compression:

Stored size: 290 Bytes

Contents

require "mixlib/shellout"

module Berkshelf
  module ShellOut
    def shell_out(*args, **options)
      cmd = Mixlib::ShellOut.new(*args, **options)
      cmd.run_command
      cmd
    end

    def shell_out!(*args)
      cmd = shell_out(*args)
      cmd.error!
      cmd
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
berkshelf-7.1.0 lib/berkshelf/shell_out.rb
berkshelf-7.0.10 lib/berkshelf/shell_out.rb
berkshelf-7.0.9 lib/berkshelf/shell_out.rb
berkshelf-7.0.8 lib/berkshelf/shell_out.rb
berkshelf-7.0.7 lib/berkshelf/shell_out.rb
berkshelf-6.3.4 lib/berkshelf/shell_out.rb
berkshelf-7.0.6 lib/berkshelf/shell_out.rb
berkshelf-7.0.5 lib/berkshelf/shell_out.rb
berkshelf-6.3.3 lib/berkshelf/shell_out.rb
berkshelf-7.0.4 lib/berkshelf/shell_out.rb
berkshelf-7.0.3 lib/berkshelf/shell_out.rb
berkshelf-7.0.2 lib/berkshelf/shell_out.rb
berkshelf-7.0.1 lib/berkshelf/shell_out.rb
berkshelf-7.0.0 lib/berkshelf/shell_out.rb
berkshelf-6.3.2 lib/berkshelf/shell_out.rb
berkshelf-6.3.1 lib/berkshelf/shell_out.rb
berkshelf-6.3.0 lib/berkshelf/shell_out.rb
berkshelf-6.2.2 lib/berkshelf/shell_out.rb
berkshelf-6.2.1 lib/berkshelf/shell_out.rb
berkshelf-6.2.0 lib/berkshelf/shell_out.rb