Class: MacSetup::HomebrewInstaller
- Inherits:
-
Object
- Object
- MacSetup::HomebrewInstaller
- Defined in:
- lib/mac_setup/homebrew_installer.rb
Constant Summary collapse
- BREW_INSTALL_URL =
"https://raw.githubusercontent.com/Homebrew/install/master/install"
Class Method Summary collapse
Class Method Details
.run ⇒ Object
7 8 9 10 11 12 13 14 15 |
# File 'lib/mac_setup/homebrew_installer.rb', line 7 def self.run if Shell.command_present?("brew") MacSetup.log "Homebrew already installed. Skipping..." else MacSetup.log "Installing Homebrew" do Shell.raw(%{/usr/bin/ruby -e "$(curl -fsSL #{BREW_INSTALL_URL})"}) end end end |