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-6.1.1 lib/berkshelf/shell_out.rb
berkshelf-6.1.0 lib/berkshelf/shell_out.rb