forked from engineyard/eycap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
33 lines (28 loc) · 916 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
require 'rubygems'
require 'hoe'
require './lib/eycap'
Hoe.new('eycap', Eycap::VERSION) do |p|
p.author = 'Engine Yard'
p.email = '[email protected]'
p.summary = 'Capistrano tasks for Engine Yard slices'
p.description = 'A bunch of useful recipes to help deployment to Engine Yard slices'
p.url = 'http://eycap.rubyforge.org'
p.changes = p.paragraphs_of('History.txt', 0..1).join("\n\n")
p.extra_deps << ['capistrano', '>= 2.2.0']
end
desc "Open an irb session preloaded with this library"
task :console do
sh "irb -rubygems -r ./lib/eycap.rb"
end
task :coverage do
system("rm -fr coverage")
system("rcov test/test_*.rb")
system("open coverage/index.html")
end
desc "Upload site to Rubyforge"
task :site do
end
desc 'Install the package as a gem.'
task :install_gem_no_doc => [:clean, :package] do
sh "#{'sudo ' unless Hoe::WINDOZE}gem install --local --no-rdoc --no-ri pkg/*.gem"
end