Module: Berkshelf::ShellOut

Included in:
Mixin::Git, Visualizer
Defined in:
lib/berkshelf/shell_out.rb

Instance Method Summary collapse

Instance Method Details

#shell_out(*args, **options) ⇒ Object



5
6
7
8
9
# 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) ⇒ Object



11
12
13
14
15
# File 'lib/berkshelf/shell_out.rb', line 11

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