Module: Ridley::Mixin::ShellOut
- Included in:
- Chef::Cookbook::SyntaxCheck
- Defined in:
- lib/ridley/mixin/shell_out.rb
Instance Method Summary collapse
Instance Method Details
#shell_out(*command_args) ⇒ Mixlib::ShellOut
7 8 9 10 11 12 13 14 |
# File 'lib/ridley/mixin/shell_out.rb', line 7 def shell_out(*command_args) cmd = Mixlib::ShellOut.new(*command_args) if STDOUT.tty? cmd.live_stream = STDOUT end cmd.run_command cmd end |
#shell_out!(*command_args) ⇒ Mixlib::ShellOut
17 18 19 20 21 |
# File 'lib/ridley/mixin/shell_out.rb', line 17 def shell_out!(*command_args) cmd = shell_out(*command_args) cmd.error! cmd end |