Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
31 lines (25 sloc) 753 Bytes
require 'rubygems'
require 'rake/gempackagetask'
require 'rake/testtask'
require 'rake/rdoctask'
# read the contents of the gemspec, eval it, and assign it to 'spec'
# this lets us maintain all gemspec info in one place. Nice and DRY.
spec = eval("amazon-ec2.gemspec")) do |pkg|
pkg.gem_spec = spec
desc "Package and then install the gem locally"
task :install => [:package] do
sh %{sudo gem install pkg/#{GEM}-#{VER}}
end do |t|
t.libs << "test"
t.test_files = FileList['test/test*.rb']
t.verbose = true
end do |rd|
rd.main = "README.rdoc"
rd.rdoc_files.include("README.rdoc", "lib/**/*.rb")
rd.rdoc_dir = 'doc'
rd.options = spec.rdoc_options
Jump to Line
Something went wrong with that request. Please try again.