Class: MacSetup::SystemStatus
- Inherits:
-
Object
- Object
- MacSetup::SystemStatus
- Defined in:
- lib/mac_setup/system_status.rb
Instance Method Summary collapse
- #git_changes(key, changes = nil) ⇒ Object
-
#initialize ⇒ SystemStatus
constructor
A new instance of SystemStatus.
- #installed_formulas ⇒ Object
- #installed_taps ⇒ Object
Constructor Details
#initialize ⇒ SystemStatus
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_formulas ⇒ Object
13 14 15 |
# File 'lib/mac_setup/system_status.rb', line 13 def installed_formulas @installed_formulas ||= get_formulas end |
#installed_taps ⇒ Object
9 10 11 |
# File 'lib/mac_setup/system_status.rb', line 9 def installed_taps @installed_taps ||= get_taps end |