summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorAJ Christensen <aj@junglist.gen.nz>2009-04-11 15:41:27 +1200
committerAJ Christensen <aj@junglist.gen.nz>2009-04-11 15:41:27 +1200
commit047bf52647e673d2359168f12e64ea9abed67c41 (patch)
treee218c35d6ec97c2b64dd7270c0bb8da27be207a0 /Rakefile
parent759dde3276ac7f20e85a2504ab5cc55bb000687e (diff)
downloadchef-047bf52647e673d2359168f12e64ea9abed67c41.tar.gz
Update readme for chef-server-slice, Add git:submodules_update rake task
git:submodules_update will be ran before the install and package tasks
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/Rakefile b/Rakefile
index 01669283c5..7819068b24 100644
--- a/Rakefile
+++ b/Rakefile
@@ -2,15 +2,22 @@ gems = %w[chef chef-server-slice chef-server]
require 'rubygems'
require 'cucumber/rake/task'
+namespace :git do
+ desc "Initialise and update the Git submodules"
+ task :submodule_update do
+ exec("git submodule update --init")
+ end
+end
+
desc "Build the chef gems"
-task :gem do
+task :gem => "git:update_and_init" do
gems.each do |dir|
Dir.chdir(dir) { sh "rake package" }
end
end
desc "Install the chef gems"
-task :install do
+task :install => "git:update_and_init" do
gems.each do |dir|
Dir.chdir(dir) { sh "rake install" }
end