summaryrefslogtreecommitdiff
path: root/chef-server
diff options
context:
space:
mode:
authorChristopher Brown <cb@opscode.com>2010-06-08 13:11:19 -0700
committerDaniel DeLeo <dan@opscode.com>2010-06-08 14:46:15 -0700
commita4a723594f5895e0be7705bb407a9cf64409f031 (patch)
tree164ccba0cd0eef75ca01be726b995d467f9ab628 /chef-server
parentcc6bc862b54ad0514f60e2d53f84abbbc70f0bdb (diff)
downloadchef-a4a723594f5895e0be7705bb407a9cf64409f031.tar.gz
added install / uninstall tasks to rakefile
Diffstat (limited to 'chef-server')
-rw-r--r--chef-server/Rakefile14
1 files changed, 12 insertions, 2 deletions
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