Sha256: 0b1ff6eb489f0db107ee0f7d0655a1187ad602ea19d039f10276f5dcdaf878d0
Contents?: true
Size: 1.03 KB
Versions: 8
Compression:
Stored size: 1.03 KB
Contents
# # Cookbook Name:: homebrew # Recipe:: homebrew # root = File.expand_path(File.join(File.dirname(__FILE__), "..")) require root + '/resources/homebrew' require root + '/providers/homebrew' require 'etc' directory "#{ENV['HOME']}/.flombe" do action :create end directory "/usr/local" do mode 0775 owner ENV['USER'] group Etc.getgrgid(Process.gid).name action :create not_if "test -e /usr/local" end execute "install homebrew" do command "ruby -e \"$(curl -fsSLk https://gist.github.com/raw/323731/install_homebrew.rb)\"" cwd "/usr/local" not_if "test -e /usr/local/bin/brew" end homebrew "git" script "ensure the git remote is installed" do interpreter "bash" code <<-EOS cd /usr/local if [ ! -d ./.git ]; then git init git remote add origin git://github.com/mxcl/homebrew.git git fetch origin git reset --hard origin/master fi EOS end script "updating homebrew from github" do interpreter "bash" code <<-EOS /usr/local/bin/brew update >> ~/.flombe/brew.log 2>&1 EOS end
Version data entries
8 entries across 8 versions & 1 rubygems