summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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