Skip to content

Commit

Permalink
kicker support via rake kicker
Browse files Browse the repository at this point in the history
  • Loading branch information
defunkt committed Oct 11, 2009
1 parent d834217 commit cbf554f
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .kick
@@ -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
6 changes: 6 additions & 0 deletions Rakefile
Expand Up @@ -9,6 +9,12 @@ Rake::TestTask.new do |t|
t.verbose = false
end

desc "Launch Kicker (like autotest)"
task :kicker do
puts "Kicking... (ctrl+c to cancel)"
exec "kicker -e rake test lib"
end

begin
require 'jeweler'
$LOAD_PATH.unshift 'lib'
Expand Down

0 comments on commit cbf554f

Please sign in to comment.