Class: MacSetup::BrewfileInstaller

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

Constant Summary collapse

BUNDLE_TAP =
"homebrew/bundle"

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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

#configObject (readonly)

Returns the value of attribute config.



8
9
10
# File 'lib/mac_setup/brewfile_installer.rb', line 8

def config
  @config
end

#statusObject (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

#runObject



19
20
21
22
23
# File 'lib/mac_setup/brewfile_installer.rb', line 19

def run
  tap_bundle
  set_up_mas
  install_brewfile
end