Class: ChefDK::ShellOut
- Inherits:
-
Mixlib::ShellOut
- Object
- Mixlib::ShellOut
- ChefDK::ShellOut
- Defined in:
- lib/chef-dk/shell_out.rb
Overview
A subclass of Mixlib::ShellOut that conforms to the API expected by CookbookOmnifetch
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.shell_out(*command_args) ⇒ Object
25 26 27 28 29 |
# File 'lib/chef-dk/shell_out.rb', line 25 def self.shell_out(*command_args) cmd = new(*command_args) cmd.run_command cmd end |
Instance Method Details
#success? ⇒ Boolean
31 32 33 |
# File 'lib/chef-dk/shell_out.rb', line 31 def success? !error? end |