module AutotestNotification class Cygwin class << self def notify(title, msg, img) img = get_image_path(img).strip system "sncmd /m '#{title}' '#{msg}' '#{img}' /t #{Config.expiration_in_seconds}" end def get_image_path(img) `cygpath -m #{img}` end end end end