Skip to content

Commit

Permalink
rake kick
Browse files Browse the repository at this point in the history
  • Loading branch information
defunkt committed Nov 2, 2009
1 parent 990ff9b commit 6bff9d9
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .kick
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# take control of the growl notifications
module GrowlHacks
def growl(type, subject, body, *args, &block)
case type
when Kicker::GROWL_NOTIFICATIONS[:succeeded]
puts subject = "Success"
body = body.split("\n").last
when Kicker::GROWL_NOTIFICATIONS[:failed]
subject = "Failure"
puts body
body = body.split("\n").last
else
return nil
end
super(type, subject, body, *args, &block)
end
end

Kicker.send :extend, GrowlHacks

# no logging
Kicker::Utils.module_eval do
def log(message)
nil
end
end
4 changes: 4 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ task :test do
end
end

task :kick do
exec "kicker -e rake lib test"
end

task :install => [ 'redis:install', 'dtach:install' ]

desc "Build a gem"
Expand Down

0 comments on commit 6bff9d9

Please sign in to comment.