Class: Ask::SessionProtocol::Host::SpawnResult
- Inherits:
-
Data
- Object
- Data
- Ask::SessionProtocol::Host::SpawnResult
- Defined in:
- lib/ask/session_protocol/host.rb
Overview
A spawned host subprocess.
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
-
#process ⇒ Object
readonly
Returns the value of attribute process.
-
#socket_path ⇒ Object
readonly
Returns the value of attribute socket_path.
-
#stderr ⇒ Object
readonly
Returns the value of attribute stderr.
Instance Method Summary collapse
-
#close ⇒ Object
Close the client and reap the subprocess.
Instance Attribute Details
#client ⇒ Object (readonly)
Returns the value of attribute client
17 18 19 |
# File 'lib/ask/session_protocol/host.rb', line 17 def client @client end |
#process ⇒ Object (readonly)
Returns the value of attribute process
17 18 19 |
# File 'lib/ask/session_protocol/host.rb', line 17 def process @process end |
#socket_path ⇒ Object (readonly)
Returns the value of attribute socket_path
17 18 19 |
# File 'lib/ask/session_protocol/host.rb', line 17 def socket_path @socket_path end |
#stderr ⇒ Object (readonly)
Returns the value of attribute stderr
17 18 19 |
# File 'lib/ask/session_protocol/host.rb', line 17 def stderr @stderr end |
Instance Method Details
#close ⇒ Object
Close the client and reap the subprocess.
19 20 21 22 23 |
# File 'lib/ask/session_protocol/host.rb', line 19 def close client.close stderr.close rescue nil process&.wait rescue nil end |