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, **options) ⇒ Object



11
12
13
14
15
16
# 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