Module: Autotest::Growl
- Defined in:
- lib/autotest/stumpwm.rb
Class Method Summary collapse
Class Method Details
.growl(title, message, icon, priority = 0, stick = "") ⇒ Object
6 7 8 9 10 11 12 13 14 15 |
# File 'lib/autotest/stumpwm.rb', line 6 def self.growl(title, , icon, priority=0, stick="") priority = if priority > 0 # error or feailed 1 # red elsif priority == -2 # passed 2 # green else 3 # yellow end system "stumpish echo ^#{priority}* #{title} #{}" end |