Module: Chef::Mixin::ShellOut

Instance Method Summary collapse

Instance Method Details

#shell_out(*command_args) ⇒ Object



24
25
26
27
28
# File 'lib/chef/mixin/shell_out.rb', line 24

def shell_out(*command_args)
  cmd = Chef::ShellOut.new(*command_args)
  cmd.run_command
  cmd
end

#shell_out!(*command_args) ⇒ Object



30
31
32
33
34
35
# File 'lib/chef/mixin/shell_out.rb', line 30

def shell_out!(*command_args)
  cmd = Chef::ShellOut.new(*command_args)
  cmd.run_command
  cmd.error!
  cmd
end