Class: MacSetup::Result

Inherits:
Object
  • Object
show all
Defined in:
lib/mac_setup/result.rb

Instance Method Summary collapse

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

#outputObject



13
14
15
# File 'lib/mac_setup/result.rb', line 13

def output
  [@stderr, @stdout].join("\n").strip
end

#success?Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/mac_setup/result.rb', line 9

def success?
  @status.success?
end