Class: Insika::Sandbox::Result
- Inherits:
-
Data
- Object
- Data
- Insika::Sandbox::Result
- Defined in:
- lib/insika/sandbox/runner.rb
Overview
Structured result of a sandboxed command. timed_out distinguishes a
deadline kill (exit_status nil) from a normal exit. output is the combined
stdout+stderr, already clipped to the provider's cap.
Instance Attribute Summary collapse
-
#exit_status ⇒ Object
readonly
Returns the value of attribute exit_status.
-
#output ⇒ Object
readonly
Returns the value of attribute output.
-
#timed_out ⇒ Object
readonly
Returns the value of attribute timed_out.
Instance Method Summary collapse
- #timed_out? ⇒ Boolean
-
#to_h ⇒ Object
Shape returned to the model by the bash tool (parity with the prototype).
Instance Attribute Details
#exit_status ⇒ Object (readonly)
Returns the value of attribute exit_status
11 12 13 |
# File 'lib/insika/sandbox/runner.rb', line 11 def exit_status @exit_status end |
#output ⇒ Object (readonly)
Returns the value of attribute output
11 12 13 |
# File 'lib/insika/sandbox/runner.rb', line 11 def output @output end |
#timed_out ⇒ Object (readonly)
Returns the value of attribute timed_out
11 12 13 |
# File 'lib/insika/sandbox/runner.rb', line 11 def timed_out @timed_out end |
Instance Method Details
#timed_out? ⇒ Boolean
12 13 |
# File 'lib/insika/sandbox/runner.rb', line 12 def timed_out? = timed_out # Shape returned to the model by the bash tool (parity with the prototype). |
#to_h ⇒ Object
Shape returned to the model by the bash tool (parity with the prototype).
14 |
# File 'lib/insika/sandbox/runner.rb', line 14 def to_h = { exit_status: exit_status, output: output, timed_out: timed_out } |