From 5023081ac29610f336909d2ce90d677889b4e2ed Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Tue, 17 Jun 2014 22:28:52 -0400 Subject: [PATCH] Fix task chains --- rake/homebrew.rake | 2 +- rake/rbenv.rake | 6 +++--- rake/vim.rake | 2 +- rake/zsh.rake | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/rake/homebrew.rake b/rake/homebrew.rake index ea3f668b..d44939ad 100644 --- a/rake/homebrew.rake +++ b/rake/homebrew.rake @@ -46,7 +46,7 @@ namespace :homebrew do echo "Homebrew is installed. Moving on." end - task :update => :install do + task :update => "homebrew:install" do echo "Updating homebrew..." Homebrew.update end diff --git a/rake/rbenv.rake b/rake/rbenv.rake index 987030a2..704973e4 100644 --- a/rake/rbenv.rake +++ b/rake/rbenv.rake @@ -15,7 +15,7 @@ namespace :rbenv do end end - task :v2_0 => :install do + task :v2_0 => "rbenv:install" do v = "2.0.0-p451" unless Rbenv.is_version_installed?(v) echo "Building ruby #{v}" @@ -23,7 +23,7 @@ namespace :rbenv do end end - task :v1_9 => :install do + task :v1_9 => "rbenv:install" do v = "1.9.3-p545" unless Rbenv.is_version_installed?(v) echo "Building ruby #{v}" @@ -38,7 +38,7 @@ namespace :rbenv do end end - task :update => :install do + task :update => "rbenv:install" do Rbenv.installed_versions.each do |v| echo "Updating ruby #{v}" Rbenv.update v diff --git a/rake/vim.rake b/rake/vim.rake index 0a5ef82d..2b532349 100644 --- a/rake/vim.rake +++ b/rake/vim.rake @@ -3,7 +3,7 @@ require_relative "lib/output" require_relative "lib/homebrew" desc "Ensure vim/macvim is installed and up to date" -task :vim +task :vim => "vim:install" namespace :vim do diff --git a/rake/zsh.rake b/rake/zsh.rake index 86e86453..86ba6bbb 100644 --- a/rake/zsh.rake +++ b/rake/zsh.rake @@ -20,7 +20,7 @@ namespace :zsh do end end - task :update => :install do + task :update => "zsh:install" do echo "Updating oh-my-zsh" sh_safe 'cd ~/.oh-my-zsh && git pull' end