class MacSetup::HomebrewInstaller

Constants

BREW_INSTALL_URL

Public Class Methods

run() click to toggle source
# 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