diff options
author | mmzyk <mmzyk@opscode.com> | 2012-02-27 11:55:05 -0500 |
---|---|---|
committer | mmzyk <mmzyk@opscode.com> | 2012-02-27 11:55:05 -0500 |
commit | 4db6f5065ce723e42464cdc563ce8406453b86a4 (patch) | |
tree | c3e0510effe9fc5681416b2323fcda1fce0bde21 | |
parent | af9c6fdfe8a240f6d4b3ea21529e09311046f744 (diff) | |
download | chef-4db6f5065ce723e42464cdc563ce8406453b86a4.tar.gz |
Added ship task to rakefile
-rw-r--r-- | chef/Rakefile | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/chef/Rakefile b/chef/Rakefile index 598dd4290a..21ad2a869c 100644 --- a/chef/Rakefile +++ b/chef/Rakefile @@ -57,6 +57,15 @@ task :uninstall do sh %{gem uninstall #{GEM_NAME} -x -v #{Chef::VERSION} } end +desc "Build it and ship it" +task :ship => [:clean, :gem] do + sh("git tag #{Chef::VERSION}") + sh("git push opscode --tags") + Dir[File.expand_path("../pkg/*.gem", __FILE__)].reverse.each do |built_gem| + sh("gem push #{built_gem}") + end +end + RONN_OPTS = "--manual='Chef Manual' --organization='Chef #{Chef::VERSION}' --date='#{Time.new.strftime('%Y-%m-%d')}'" namespace :docs do |