Fix task chains

This commit is contained in:
Henrik Lissner 2014-06-17 22:28:52 -04:00
parent 955dda903c
commit 5023081ac2
4 changed files with 6 additions and 6 deletions

View file

@ -46,7 +46,7 @@ namespace :homebrew do
echo "Homebrew is installed. Moving on." echo "Homebrew is installed. Moving on."
end end
task :update => :install do task :update => "homebrew:install" do
echo "Updating homebrew..." echo "Updating homebrew..."
Homebrew.update Homebrew.update
end end

View file

@ -15,7 +15,7 @@ namespace :rbenv do
end end
end end
task :v2_0 => :install do task :v2_0 => "rbenv:install" do
v = "2.0.0-p451" v = "2.0.0-p451"
unless Rbenv.is_version_installed?(v) unless Rbenv.is_version_installed?(v)
echo "Building ruby #{v}" echo "Building ruby #{v}"
@ -23,7 +23,7 @@ namespace :rbenv do
end end
end end
task :v1_9 => :install do task :v1_9 => "rbenv:install" do
v = "1.9.3-p545" v = "1.9.3-p545"
unless Rbenv.is_version_installed?(v) unless Rbenv.is_version_installed?(v)
echo "Building ruby #{v}" echo "Building ruby #{v}"
@ -38,7 +38,7 @@ namespace :rbenv do
end end
end end
task :update => :install do task :update => "rbenv:install" do
Rbenv.installed_versions.each do |v| Rbenv.installed_versions.each do |v|
echo "Updating ruby #{v}" echo "Updating ruby #{v}"
Rbenv.update v Rbenv.update v

View file

@ -3,7 +3,7 @@ require_relative "lib/output"
require_relative "lib/homebrew" require_relative "lib/homebrew"
desc "Ensure vim/macvim is installed and up to date" desc "Ensure vim/macvim is installed and up to date"
task :vim task :vim => "vim:install"
namespace :vim do namespace :vim do

View file

@ -20,7 +20,7 @@ namespace :zsh do
end end
end end
task :update => :install do task :update => "zsh:install" do
echo "Updating oh-my-zsh" echo "Updating oh-my-zsh"
sh_safe 'cd ~/.oh-my-zsh && git pull' sh_safe 'cd ~/.oh-my-zsh && git pull'
end end