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
Class Method Summary collapse
- .shell_out(command, options = nil) ⇒ Object
-
.shell_out!(command, options = nil) ⇒ Object
Shell Out.
-
.windows_script_out(shellType, script, options = nil, flags = nil, desiredarchitecture = nil) ⇒ Object
Scripts.
- .windows_script_out!(shellType, script, options = nil, flags = nil, desiredarchitecture = nil) ⇒ Object
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, =nil) shellclass=Shell::ShellCall.new return shellclass.shell(command, ) 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, =nil) shellclass=Shell::ShellCall.new return shellclass.shell!(command, ) 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, =nil, flags=nil,desiredarchitecture=nil) return run_windows_script(shellType,false,script, , 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, =nil, flags=nil,desiredarchitecture=nil ) return run_windows_script(shellType,true,script, , flags,desiredarchitecture) end |