Exception: OpenShift::Utils::ShellExecutionException

Inherits:
Exception
  • Object
show all
Defined in:
lib/openshift-origin-node/utils/shell_exec.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg, rc = -1,, stdout = nil, stderr = nil) ⇒ ShellExecutionException

Returns a new instance of ShellExecutionException.



24
25
26
27
28
29
# File 'lib/openshift-origin-node/utils/shell_exec.rb', line 24

def initialize(msg, rc=-1, stdout = nil, stderr = nil)
  super msg
  self.rc = rc 
  self.stdout = stdout
  self.stderr = stderr
end

Instance Attribute Details

#rcObject

Returns the value of attribute rc.



23
24
25
# File 'lib/openshift-origin-node/utils/shell_exec.rb', line 23

def rc
  @rc
end

#stderrObject

Returns the value of attribute stderr.



23
24
25
# File 'lib/openshift-origin-node/utils/shell_exec.rb', line 23

def stderr
  @stderr
end

#stdoutObject

Returns the value of attribute stdout.



23
24
25
# File 'lib/openshift-origin-node/utils/shell_exec.rb', line 23

def stdout
  @stdout
end