summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormmzyk <mmzyk@opscode.com>2012-02-27 12:19:19 -0500
committermmzyk <mmzyk@opscode.com>2012-02-27 12:19:19 -0500
commit2b341db473c6d12fce4e572b019ef990f60ad6e6 (patch)
treea6c948e62afb5d1b1f53be158b3817d2c395afd7
parent4db6f5065ce723e42464cdc563ce8406453b86a4 (diff)
downloadchef-platform_specific_gems.tar.gz
Move ship task to top level rakefileplatform_specific_gems
-rw-r--r--Rakefile11
-rw-r--r--chef/Rakefile9
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