Class: MacSetup::Result
- Inherits:
-
Object
- Object
- MacSetup::Result
- Defined in:
- lib/mac_setup/result.rb
Instance Method Summary collapse
-
#initialize(stdout, stderr, status) ⇒ Result
constructor
A new instance of Result.
- #output ⇒ Object
- #success? ⇒ Boolean
Constructor Details
#initialize(stdout, stderr, status) ⇒ Result
Returns a new instance of Result.
3 4 5 6 7 |
# File 'lib/mac_setup/result.rb', line 3 def initialize(stdout, stderr, status) @stdout = stdout @stderr = stderr @status = status end |
Instance Method Details
#output ⇒ Object
13 14 15 |
# File 'lib/mac_setup/result.rb', line 13 def output [@stderr, @stdout].join("\n").strip end |
#success? ⇒ Boolean
9 10 11 |
# File 'lib/mac_setup/result.rb', line 9 def success? @status.success? end |