Class: Brewdler::CaskInstaller

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

Class Method Summary collapse

Class Method Details

.install(name) ⇒ Object



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

def self.install(name)
  if `which brew-cask`; $?.success?
    `brew cask install #{name}`
  else
    raise "Unable to install #{name}. Homebrew-cask is not currently installed on your system"
  end
end