Class: MacSetup::BrewfileInstaller
- Inherits:
-
Object
- Object
- MacSetup::BrewfileInstaller
- Defined in:
- lib/mac_setup/brewfile_installer.rb
Constant Summary collapse
- BUNDLE_TAP =
"homebrew/bundle"
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(config, status) ⇒ BrewfileInstaller
constructor
A new instance of BrewfileInstaller.
- #run ⇒ Object
Constructor Details
#initialize(config, status) ⇒ BrewfileInstaller
Returns a new instance of BrewfileInstaller.
14 15 16 17 |
# File 'lib/mac_setup/brewfile_installer.rb', line 14 def initialize(config, status) @config = config @status = status end |
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
8 9 10 |
# File 'lib/mac_setup/brewfile_installer.rb', line 8 def config @config end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
8 9 10 |
# File 'lib/mac_setup/brewfile_installer.rb', line 8 def status @status end |
Class Method Details
.run(config, status) ⇒ Object
10 11 12 |
# File 'lib/mac_setup/brewfile_installer.rb', line 10 def self.run(config, status) new(config, status).run end |
Instance Method Details
#run ⇒ Object
19 20 21 22 23 |
# File 'lib/mac_setup/brewfile_installer.rb', line 19 def run tap_bundle set_up_mas install_brewfile end |