Class: Microsandbox::ExitStatus
- Inherits:
-
Object
- Object
- Microsandbox::ExitStatus
- Defined in:
- lib/microsandbox/exec_handle.rb
Overview
The terminal status of a streamed execution, from Microsandbox::ExecHandle#wait.
Instance Attribute Summary collapse
- #exit_code ⇒ Integer readonly
Instance Method Summary collapse
- #failure? ⇒ Boolean
-
#initialize(data) ⇒ ExitStatus
constructor
A new instance of ExitStatus.
- #success? ⇒ Boolean
Constructor Details
#initialize(data) ⇒ ExitStatus
Returns a new instance of ExitStatus.
46 47 48 49 |
# File 'lib/microsandbox/exec_handle.rb', line 46 def initialize(data) @exit_code = data["exit_code"] @success = data["success"] end |
Instance Attribute Details
#exit_code ⇒ Integer (readonly)
44 45 46 |
# File 'lib/microsandbox/exec_handle.rb', line 44 def exit_code @exit_code end |
Instance Method Details
#failure? ⇒ Boolean
52 |
# File 'lib/microsandbox/exec_handle.rb', line 52 def failure? = !@success |
#success? ⇒ Boolean
51 |
# File 'lib/microsandbox/exec_handle.rb', line 51 def success? = @success |