Class: AutotestNotification::Cygwin
- Inherits:
-
Object
- Object
- AutotestNotification::Cygwin
- Defined in:
- lib/autotest_notification/cygwin.rb
Class Method Summary collapse
Class Method Details
.get_image_path(img) ⇒ Object
9 10 11 |
# File 'lib/autotest_notification/cygwin.rb', line 9 def get_image_path(img) `cygpath -m #{img}` end |
.notify(title, msg, img) ⇒ Object
4 5 6 7 |
# File 'lib/autotest_notification/cygwin.rb', line 4 def notify(title, msg, img) img = get_image_path(img).strip system "sncmd /m '#{title}' '#{msg}' '#{img}' /t #{EXPIRATION_IN_SECONDS}" end |