Skip to content

Commit 6bff9d9

Browse files
committed
rake kick
1 parent 990ff9b commit 6bff9d9

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

.kick

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# take control of the growl notifications
2+
module GrowlHacks
3+
def growl(type, subject, body, *args, &block)
4+
case type
5+
when Kicker::GROWL_NOTIFICATIONS[:succeeded]
6+
puts subject = "Success"
7+
body = body.split("\n").last
8+
when Kicker::GROWL_NOTIFICATIONS[:failed]
9+
subject = "Failure"
10+
puts body
11+
body = body.split("\n").last
12+
else
13+
return nil
14+
end
15+
super(type, subject, body, *args, &block)
16+
end
17+
end
18+
19+
Kicker.send :extend, GrowlHacks
20+
21+
# no logging
22+
Kicker::Utils.module_eval do
23+
def log(message)
24+
nil
25+
end
26+
end

Rakefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ task :test do
1414
end
1515
end
1616

17+
task :kick do
18+
exec "kicker -e rake lib test"
19+
end
20+
1721
task :install => [ 'redis:install', 'dtach:install' ]
1822

1923
desc "Build a gem"

0 commit comments

Comments
 (0)