Class: MacSetup::ScriptInstaller

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

Constant Summary collapse

SCRIPTS_PATH =
"mac_setup/scripts"

Class Method Summary collapse

Class Method Details

.run(_config, _status) ⇒ Object



7
8
9
10
11
12
# File 'lib/mac_setup/script_installer.rb', line 7

def self.run(_config, _status)
  Pathname.new(MacSetup.dotfiles_path).join(SCRIPTS_PATH).each_child do |script|
    MacSetup.log "Running script #{script}..."
    Shell.run(script.to_s)
  end
end