Class: MacSetup::SystemStatus

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

Instance Method Summary collapse

Constructor Details

#initializeSystemStatus

Returns a new instance of SystemStatus.



5
6
7
# File 'lib/mac_setup/system_status.rb', line 5

def initialize
  @git_changes = Hash.new { |hash, key| hash[key] = [] }
end

Instance Method Details

#git_changes(key, changes = nil) ⇒ Object



17
18
19
20
21
22
23
# File 'lib/mac_setup/system_status.rb', line 17

def git_changes(key, changes = nil)
  if changes
    @git_changes[key] = changes
  else
    @git_changes[key]
  end
end

#installed_formulasObject



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

def installed_formulas
  @installed_formulas ||= get_formulas
end

#installed_tapsObject



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

def installed_taps
  @installed_taps ||= get_taps
end