RiotGames/berkshelf

View on GitHub
lib/berkshelf/shell_out.rb

Summary

Maintainability
A
0 mins
Test Coverage
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