From 2b341db473c6d12fce4e572b019ef990f60ad6e6 Mon Sep 17 00:00:00 2001 From: mmzyk Date: Mon, 27 Feb 2012 12:19:19 -0500 Subject: Move ship task to top level rakefile --- Rakefile | 11 +++++++++++ chef/Rakefile | 9 --------- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/Rakefile b/Rakefile index 85cca51fdb..838f7ac92a 100644 --- a/Rakefile +++ b/Rakefile @@ -17,6 +17,8 @@ # limitations under the License. # +require File.dirname(__FILE__) + '/chef/lib/chef/version' + gems = %w[chef chef-server-api chef-server-webui chef-solr chef-expander chef-server] require 'rubygems' @@ -41,6 +43,15 @@ task :uninstall do end 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 + desc "Run the rspec tests" task :spec do Dir.chdir("chef") { sh "rake spec" } diff --git a/chef/Rakefile b/chef/Rakefile index 21ad2a869c..598dd4290a 100644 --- a/chef/Rakefile +++ b/chef/Rakefile @@ -57,15 +57,6 @@ 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 -- cgit v1.2.1