Module: Mixlibrary::Core::Shell

Defined in:
lib/mixlibrary/core/shell/app.rb,
lib/mixlibrary/core/shell/shell_call.rb,
lib/mixlibrary/core/shell/scripts/base.rb,
lib/mixlibrary/core/shell/scripts/powershell.rb,
lib/mixlibrary/core/shell/scripts/windows_script.rb,
lib/mixlibrary/core/shell/scripts/shelloutwrapper.rb

Defined Under Namespace

Classes: Scripts, ShellCall

Class Method Summary collapse

Class Method Details

.shell_out(command, options = nil) ⇒ Object



36
37
38
39
# File 'lib/mixlibrary/core/shell/app.rb', line 36

def self.shell_out(command, options=nil)
  shellclass=Shell::ShellCall.new
  return shellclass.shell(command, options)
end

.shell_out!(command, options = nil) ⇒ Object

Shell Out



31
32
33
34
# File 'lib/mixlibrary/core/shell/app.rb', line 31

def self.shell_out!(command, options=nil)
  shellclass=Shell::ShellCall.new
  return shellclass.shell!(command, options)
end

.windows_script_out(shellType, script, options = nil, flags = nil, desiredarchitecture = nil) ⇒ Object

Scripts



20
21
22
# File 'lib/mixlibrary/core/shell/app.rb', line 20

def self.windows_script_out(shellType,script, options=nil, flags=nil,desiredarchitecture=nil)
  return run_windows_script(shellType,false,script, options, flags,desiredarchitecture)
end

.windows_script_out!(shellType, script, options = nil, flags = nil, desiredarchitecture = nil) ⇒ Object



24
25
26
# File 'lib/mixlibrary/core/shell/app.rb', line 24

def self.windows_script_out!(shellType,script, options=nil, flags=nil,desiredarchitecture=nil )
  return run_windows_script(shellType,true,script, options, flags,desiredarchitecture)
end