Sha256: 4ddeeb77520e4e01bfc5dc524293294b137b7ab79dcf6dae231f41302ebd42f9

Contents?: true

Size: 709 Bytes

Versions: 5

Compression:

Stored size: 709 Bytes

Contents

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(IO.read("amazon-ec2.gemspec"))

Rake::GemPackageTask.new(spec) do |pkg|
  pkg.gem_spec = spec
end

task :install => [:package] do
  sh %{sudo gem install pkg/#{GEM}-#{VERSION}}
end

Rake::TestTask.new do |t|
  t.libs << "test"
  t.test_files = FileList['test/test*.rb']
  t.verbose = true
end

Rake::RDocTask.new do |rd|
  rd.main = "README.rdoc"
  rd.rdoc_files.include("README.rdoc", "lib/**/*.rb")
  rd.rdoc_dir = 'doc'
  rd.options = spec.rdoc_options
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
grempe-amazon-ec2-0.3.1 Rakefile
grempe-amazon-ec2-0.3.2 Rakefile
grempe-amazon-ec2-0.3.3 Rakefile
amazon-ec2-0.3.1 Rakefile
amazon-ec2-0.3.2 Rakefile