summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormmzyk <mmzyk@opscode.com>2012-02-27 11:55:05 -0500
committermmzyk <mmzyk@opscode.com>2012-02-27 11:55:05 -0500
commit4db6f5065ce723e42464cdc563ce8406453b86a4 (patch)
treec3e0510effe9fc5681416b2323fcda1fce0bde21
parentaf9c6fdfe8a240f6d4b3ea21529e09311046f744 (diff)
downloadchef-4db6f5065ce723e42464cdc563ce8406453b86a4.tar.gz
Added ship task to rakefile
-rw-r--r--chef/Rakefile9
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