Class: Brewdler::BrewInstaller

Inherits:
Object
  • Object
show all
Defined in:
lib/brewdler/brew_installer.rb

Class Method Summary collapse

Class Method Details

.install(name) ⇒ Object



3
4
5
6
7
8
9
# File 'lib/brewdler/brew_installer.rb', line 3

def self.install(name)
  if system 'brew info'
    `brew install #{name}`
  else
    raise "Unable to install #{name}. Homebrew is not currently installed on your system"
  end
end