Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

rake kick

  • Loading branch information...
commit 6bff9d991e166d181388c048b5b71012acdaf65b 1 parent 990ff9b
Chris Wanstrath defunkt authored
Showing with 30 additions and 0 deletions.
  1. +26 −0 .kick
  2. +4 −0 Rakefile
26 .kick
View
@@ -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 Rakefile
View
@@ -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"
Please sign in to comment.
Something went wrong with that request. Please try again.