forked from mojombo/god
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Rakefile
35 lines (30 loc) · 958 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
34
35
require 'rubygems'
require 'hoe'
Hoe.new('god', '0.7.9') do |p|
p.rubyforge_name = 'god'
p.author = 'Tom Preston-Werner'
p.email = '[email protected]'
p.url = 'http://god.rubyforge.org/'
p.summary = 'Like monit, only awesome'
p.description = "God is an easy to configure, easy to extend monitoring framework written in Ruby."
p.changes = p.paragraphs_of('History.txt', 0..1).join("\n\n")
p.spec_extras = {:extensions => ['ext/god/extconf.rb']}
end
desc "Open an irb session preloaded with this library"
task :console do
sh "irb -rubygems -r ./lib/god.rb"
end
desc "Upload site to Rubyforge"
task :site do
sh "scp -r site/* [email protected]:/var/www/gforge-projects/god"
end
desc "Upload site to Rubyforge"
task :site_edge do
sh "scp -r site/* [email protected]:/var/www/gforge-projects/god/edge"
end
desc "Run rcov"
task :coverage do
`rm -fr coverage`
`rcov test/test_*.rb`
`open coverage/index.html`
end