From a4a723594f5895e0be7705bb407a9cf64409f031 Mon Sep 17 00:00:00 2001 From: Christopher Brown Date: Tue, 8 Jun 2010 13:11:19 -0700 Subject: added install / uninstall tasks to rakefile --- chef-server/Rakefile | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'chef-server') diff --git a/chef-server/Rakefile b/chef-server/Rakefile index d44e4f12e3..e3ae7f2dc4 100644 --- a/chef-server/Rakefile +++ b/chef-server/Rakefile @@ -19,14 +19,14 @@ require File.dirname(__FILE__) + '/lib/chef-server/version' require 'rake/gempackagetask' -GEM_NAME = "chef-server-api" +GEM_NAME = "chef-server" AUTHOR = "Opscode" EMAIL = "chef@opscode.com" HOMEPAGE = "http://wiki.opscode.com/display/chef" SUMMARY = "A meta-gem to install all server components of the Chef configuration management system" spec = Gem::Specification.new do |s| - s.name = 'chef-server' + s.name = GEM_NAME s.version = ChefServer::VERSION s.platform = Gem::Platform::RUBY s.has_rdoc = true @@ -45,6 +45,16 @@ spec = Gem::Specification.new do |s| s end +desc "Install the gem" +task :install => :package do + sh %{gem install pkg/#{GEM_NAME}-#{ChefServer::VERSION} --no-rdoc --no-ri} +end + +desc "Uninstall the gem" +task :uninstall do + sh %{gem uninstall #{GEM_NAME} -x -v #{ChefServer::VERSION} } +end + Rake::GemPackageTask.new(spec) do |pkg| pkg.gem_spec = spec end -- cgit v1.2.1