Class: Mixlibrary::Core::Shell::ShellCall

Inherits:
Object
  • Object
show all
Includes:
Chef::Mixin::ShellOut
Defined in:
lib/mixlibrary/core/shell/shell_call.rb

Instance Method Summary collapse

Constructor Details

#initializeShellCall

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, options)
  result = shell_out("#{command}", options)
  return result  
end

#shell!(command, options) ⇒ Object



18
19
20
21
# File 'lib/mixlibrary/core/shell/shell_call.rb', line 18

def shell!(command, options)
  result = shell_out!("#{command}", options)
  return result  
end