helm/rake/homebrew.rake

60 lines
1.2 KiB
Ruby
Raw Normal View History

2014-04-11 00:31:44 -07:00
require_relative "lib/output"
require_relative "lib/homebrew"
desc "Ensure homebrew is installed and up to date"
task :homebrew => 'homebrew:update'
namespace :homebrew do
task :install do
unless Homebrew.is_installed?
echo "Installing Homebrew..."
Homebrew.bootstrap
end
Homebrew.tap('homebrew/dupes')
Homebrew.tap('phinze/cask')
%w{
coreutils
wget
curl
tree
git
2014-04-13 08:46:20 -07:00
brew-cask
2014-04-11 00:31:44 -07:00
the_silver_searcher
tmux
gist
2014-04-13 08:46:20 -07:00
lua
luajit
2014-04-11 00:31:44 -07:00
}.each { |pkg| Homebrew.install pkg }
%w{
dropbox
firefox
appcleaner
vagrant
virtualbox
growlnotify
iterm2
launchbar
java
}.each { |app| Homebrew.install_cask app }
echo "Homebrew is installed. Moving on."
2014-04-11 00:31:44 -07:00
end
task :update => :install do
echo "Updating homebrew..."
Homebrew.update
end
desc "Remove homebrew cleanly"
2014-04-13 08:46:20 -07:00
task :remove do
2014-04-11 00:31:44 -07:00
Homebrew.destroy if Homebrew.is_installed?
end
end