Sha256: e240c32d2611b003da50fc97e50ae46a6d6162bc0ca4a8e923f3fffb43336fea
Contents?: true
Size: 810 Bytes
Versions: 7
Compression:
Stored size: 810 Bytes
Contents
require File.dirname(__FILE__) + '/lib/chef-server-api/version' require 'rubygems' require 'rake/gempackagetask' begin require 'merb-core' require 'merb-core/tasks/merb' rescue LoadError STDERR.puts "merb is not installed, merb rake tasks will not be available." end GEM_NAME = "chef-server-api" spec = eval(File.read("chef-server-api.gemspec")) Rake::GemPackageTask.new(spec) do |pkg| pkg.gem_spec = spec end desc "Install the gem" task :install => :package do sh %{gem install pkg/#{GEM_NAME}-#{ChefServerApi::VERSION} --no-rdoc --no-ri} end desc "Uninstall the gem" task :uninstall do sh %{gem uninstall #{GEM_NAME} -x -v #{ChefServerApi::VERSION} } end desc "Create a gemspec file" task :gemspec do File.open("#{GEM_NAME}.gemspec", "w") do |file| file.puts spec.to_ruby end end
Version data entries
7 entries across 7 versions & 1 rubygems