Class: Overcommit::Subprocess::Result
- Inherits:
-
Struct
- Object
- Struct
- Overcommit::Subprocess::Result
- Defined in:
- lib/overcommit/subprocess.rb
Overview
Encapsulates the result of a process.
Instance Attribute Summary collapse
-
#status ⇒ Integer
readonly
exit status code returned by process.
-
#stderr ⇒ String
readonly
standard error stream output.
-
#stdout ⇒ String
readonly
standard output stream output.
Instance Method Summary collapse
Instance Attribute Details
#status ⇒ Integer (readonly)
exit status code returned by process
16 17 18 |
# File 'lib/overcommit/subprocess.rb', line 16 def status @status end |
#stderr ⇒ String (readonly)
standard error stream output
16 17 18 |
# File 'lib/overcommit/subprocess.rb', line 16 def stderr @stderr end |
#stdout ⇒ String (readonly)
standard output stream output
16 17 18 |
# File 'lib/overcommit/subprocess.rb', line 16 def stdout @stdout end |
Instance Method Details
#success? ⇒ Boolean
17 18 19 |
# File 'lib/overcommit/subprocess.rb', line 17 def success? status == 0 end |