This commit is contained in:
Chris Wanstrath 2009-10-30 18:14:35 -07:00
Родитель 26e974f87f
Коммит 86aafd93cd
1 изменённых файлов: 26 добавлений и 0 удалений

26
.kick Normal file
Просмотреть файл

@ -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