module Berkshelf::ShellOut

Public Instance Methods

shell_out(*args, **options) click to toggle source
# File lib/berkshelf/shell_out.rb, line 5
def shell_out(*args, **options)
  cmd = Mixlib::ShellOut.new(*args, **options)
  cmd.run_command
  cmd
end
shell_out!(*args, **options) click to toggle source
# File lib/berkshelf/shell_out.rb, line 11
def shell_out!(*args, **options)
  cmd = Mixlib::ShellOut.new(*args, **options)
  cmd.run_command
  cmd.error!
  cmd
end