Class: MacSetup::Plugins::MacAppStore

Inherits:
MacSetup::Plugin show all
Defined in:
lib/mac_setup/plugins/mac_app_store.rb

Class Method Summary collapse

Methods inherited from MacSetup::Plugin

get_status, load

Class Method Details

.add_requirements(config) ⇒ Object



11
12
13
# File 'lib/mac_setup/plugins/mac_app_store.rb', line 11

def add_requirements(config)
  config.add(:brews, :mas)
end

.bootstrap(config) ⇒ Object



5
6
7
8
9
# File 'lib/mac_setup/plugins/mac_app_store.rb', line 5

def bootstrap(config)
  add_requirements(config)
  install
  
end

.run(config, _status) ⇒ Object



15
16
17
18
19
20
21
# File 'lib/mac_setup/plugins/mac_app_store.rb', line 15

def run(config, _status)
  

  config.mas.each do |_name, id|
    Shell.run("mas install #{id}")
  end
end