diff options
author | AJ Christensen <aj@junglist.gen.nz> | 2009-04-11 15:41:27 +1200 |
---|---|---|
committer | AJ Christensen <aj@junglist.gen.nz> | 2009-04-11 15:41:27 +1200 |
commit | 047bf52647e673d2359168f12e64ea9abed67c41 (patch) | |
tree | e218c35d6ec97c2b64dd7270c0bb8da27be207a0 /Rakefile | |
parent | 759dde3276ac7f20e85a2504ab5cc55bb000687e (diff) | |
download | chef-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-- | Rakefile | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -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 |