class Strapper::Recipes::Homebrew

Public Instance Methods

installed?() click to toggle source
# File lib/strapper/recipes/homebrew.rb, line 7
def installed?
  `which brew` != ""
end
run() click to toggle source
# File lib/strapper/recipes/homebrew.rb, line 11
def run
  if installed?
    puts "Homebrew is already installed"
  else
    puts "Installing homebrew"
    `ruby -e "$(curl -fsSkL raw.github.com/mxcl/homebrew/go)"`
  end
end