Class: Gofer::Response
- Inherits:
-
String
- Object
- String
- Gofer::Response
- Defined in:
- lib/gofer/response.rb
Overview
Response container for the various outputs from Gofer::Host#run
Instance Attribute Summary collapse
-
#exit_status ⇒ Object
readonly
Exit status of command, only available if :capture_exit_status is used.
-
#output ⇒ Object
readonly
Combined STDOUT / STDERR output (also value of this as a String).
-
#stderr ⇒ Object
readonly
Captured STDERR output.
-
#stdout ⇒ Object
readonly
Captured STDOUT output.
Instance Method Summary collapse
-
#initialize(_stdout, _stderr, _output, _exit_status) ⇒ Response
constructor
:nodoc:.
Constructor Details
#initialize(_stdout, _stderr, _output, _exit_status) ⇒ Response
:nodoc:
18 19 20 21 22 23 24 |
# File 'lib/gofer/response.rb', line 18 def initialize (_stdout, _stderr, _output, _exit_status) # :nodoc: super _stdout @stdout = _stdout @stderr = _stderr @output = _output @exit_status = _exit_status end |
Instance Attribute Details
#exit_status ⇒ Object (readonly)
Exit status of command, only available if :capture_exit_status is used
16 17 18 |
# File 'lib/gofer/response.rb', line 16 def exit_status @exit_status end |
#output ⇒ Object (readonly)
Combined STDOUT / STDERR output (also value of this as a String)
13 14 15 |
# File 'lib/gofer/response.rb', line 13 def output @output end |
#stderr ⇒ Object (readonly)
Captured STDERR output
10 11 12 |
# File 'lib/gofer/response.rb', line 10 def stderr @stderr end |
#stdout ⇒ Object (readonly)
Captured STDOUT output
7 8 9 |
# File 'lib/gofer/response.rb', line 7 def stdout @stdout end |