Module OpenShift::Utils::ShellExec
In: lib/openshift-origin-node/utils/shell_exec.rb

Methods

shellCmd   shellCmd  

Public Class methods

Public: Execute shell command.

iv - A String value for the IV file. cmd - A String value of the command to run. pwd - A String value of target working directory. ignore_err - A Boolean value to determine if errors should be ignored. expected_rc - A Integer value for the expected return code of cmd.

Examples

  OpenShift::Utils::ShellExec.shellCmd('ls /etc/passwd')
  # => ["/etc/passwd\n","", 0]

Returns An Array with [stdout, stderr, return_code]

Public Instance methods

[Validate]