Sha256: a4c255ae6a7c1b6c2f3749c5e33322bcc087dbaeb7954fcc91486ef57a64ec74

Contents?: true

Size: 379 Bytes

Versions: 12

Compression:

Stored size: 379 Bytes

Contents

require "mixlib/shellout" unless defined?(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, **options)
      cmd = Mixlib::ShellOut.new(*args, **options)
      cmd.run_command
      cmd.error!
      cmd
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
berkshelf-8.0.15 lib/berkshelf/shell_out.rb
berkshelf-8.0.13 lib/berkshelf/shell_out.rb
berkshelf-8.0.12 lib/berkshelf/shell_out.rb
berkshelf-8.0.9 lib/berkshelf/shell_out.rb
berkshelf-8.0.7 lib/berkshelf/shell_out.rb
berkshelf-8.0.5 lib/berkshelf/shell_out.rb
berkshelf-8.0.2 lib/berkshelf/shell_out.rb
berkshelf-8.0.1 lib/berkshelf/shell_out.rb
berkshelf-8.0.0 lib/berkshelf/shell_out.rb
berkshelf-7.2.2 lib/berkshelf/shell_out.rb
berkshelf-7.2.1 lib/berkshelf/shell_out.rb
berkshelf-7.2.0 lib/berkshelf/shell_out.rb