Permalink
Browse files

autotest config: remove custom growl hacks and simply require 'autote…

…st/growl'
  • Loading branch information...
1 parent b2dcea7 commit 25b4adc1f6a09d02cb277ad5c683aaaef3a3a080 @mislav mislav committed Mar 10, 2009
Showing with 1 addition and 28 deletions.
  1. +1 −28 autotest
View
@@ -1,28 +1 @@
-module Autotest::Growl
- def self.growl title, msg, pri = 0, img = nil
- # title += " in #{Dir.pwd.split(/\//)[-3..-1].join("/")}"
- # msg += " at #{Time.now.strftime('%Y-%m-%d %H:%M:%S')}"
-
- # TODO: parameterize default image
- img ||= "/Applications/Mail.app/Contents/Resources/Caution.tiff"
- cmd = "growlnotify -n autotest --image #{img} -p #{pri} -m #{msg.inspect} #{title.inspect}"
- system cmd
- end
-
- # Autotest.add_hook :initialize do |at|
- # growl "autotest running", "Started"
- # false
- # end
-
- Autotest.add_hook :red do |at|
- growl "Tests Failed", "#{at.files_to_test.size} tests failed", 2
- end
-
- Autotest.add_hook :green do |at|
- growl "Tests Passed", "Tests passed", -2 if at.tainted
- end
-
- Autotest.add_hook :all_good do |at|
- growl "Tests Passed", "All tests passed", -2 if at.tainted
- end
-end
+require 'autotest/growl'

0 comments on commit 25b4adc

Please sign in to comment.