Class: Mixlibrary::Core::Shell::ShellCall
- Inherits:
-
Object
- Object
- Mixlibrary::Core::Shell::ShellCall
- Includes:
- Chef::Mixin::ShellOut
- Defined in:
- lib/mixlibrary/core/shell/shell_call.rb
Instance Method Summary collapse
-
#initialize ⇒ ShellCall
constructor
A new instance of ShellCall.
- #shell(command, options) ⇒ Object
- #shell!(command, options) ⇒ Object
Constructor Details
#initialize ⇒ ShellCall
Returns a new instance of ShellCall.
9 10 11 |
# File 'lib/mixlibrary/core/shell/shell_call.rb', line 9 def initialize end |
Instance Method Details
#shell(command, options) ⇒ Object
13 14 15 16 |
# File 'lib/mixlibrary/core/shell/shell_call.rb', line 13 def shell(command, ) result = shell_out("#{command}", ) return result end |
#shell!(command, options) ⇒ Object
18 19 20 21 |
# File 'lib/mixlibrary/core/shell/shell_call.rb', line 18 def shell!(command, ) result = shell_out!("#{command}", ) return result end |