Module: Rakegrowl
- Defined in:
- lib/rakegrowl.rb
Defined Under Namespace
Modules: Growl
Constant Summary collapse
- GEM_PATH =
File.(File.join(File.dirname(__FILE__), '..'))
- COMPLETE_IMG =
File.join(GEM_PATH, 'img', 'complete.png')
- ABORT_IMG =
File.join(GEM_PATH, 'img', 'abort.png')
Class Method Summary collapse
Class Method Details
.enhance_tasks ⇒ Object
23 24 25 26 27 28 29 30 31 |
# File 'lib/rakegrowl.rb', line 23 def self.enhance_tasks if Growl.exists? Rake::Task.tasks.each do |task| task.enhance do Growl.notify "Rake", "Task #{task.name} finished", COMPLETE_IMG if Rake.application.top_level_tasks.include?(task.name) end end end end |