Exception: MSPRelease::Exec::UnexpectedExitStatus
- Inherits:
-
StandardError
- Object
- StandardError
- MSPRelease::Exec::UnexpectedExitStatus
- Defined in:
- lib/msp_release/exec.rb
Instance Attribute Summary collapse
-
#actual ⇒ Object
(also: #exitstatus)
readonly
Returns the value of attribute actual.
-
#command ⇒ Object
readonly
Returns the value of attribute command.
-
#expect ⇒ Object
readonly
Returns the value of attribute expect.
-
#output ⇒ Object
readonly
Returns the value of attribute output.
-
#stderr ⇒ Object
readonly
Returns the value of attribute stderr.
-
#stdout ⇒ Object
readonly
Returns the value of attribute stdout.
Instance Method Summary collapse
-
#initialize(expected, actual, cmd, output, stdout, stderr) ⇒ UnexpectedExitStatus
constructor
A new instance of UnexpectedExitStatus.
Constructor Details
#initialize(expected, actual, cmd, output, stdout, stderr) ⇒ UnexpectedExitStatus
Returns a new instance of UnexpectedExitStatus.
8 9 10 11 12 13 14 15 |
# File 'lib/msp_release/exec.rb', line 8 def initialize(expected, actual, cmd, output, stdout, stderr) @expected = expected @actual = actual @command = cmd @stdout = stdout @stderr = stderr super("command '#{command}' exited with #{actual}, expected #{expected}") end |
Instance Attribute Details
#actual ⇒ Object (readonly) Also known as: exitstatus
Returns the value of attribute actual.
17 18 19 |
# File 'lib/msp_release/exec.rb', line 17 def actual @actual end |
#command ⇒ Object (readonly)
Returns the value of attribute command.
17 18 19 |
# File 'lib/msp_release/exec.rb', line 17 def command @command end |
#expect ⇒ Object (readonly)
Returns the value of attribute expect.
17 18 19 |
# File 'lib/msp_release/exec.rb', line 17 def expect @expect end |
#output ⇒ Object (readonly)
Returns the value of attribute output.
17 18 19 |
# File 'lib/msp_release/exec.rb', line 17 def output @output end |
#stderr ⇒ Object (readonly)
Returns the value of attribute stderr.
17 18 19 |
# File 'lib/msp_release/exec.rb', line 17 def stderr @stderr end |
#stdout ⇒ Object (readonly)
Returns the value of attribute stdout.
17 18 19 |
# File 'lib/msp_release/exec.rb', line 17 def stdout @stdout end |