Sha256: d1e6c8265ecf69fcf977f6dcbf5fc4a5bffdde553901bf9a6a5ef0703decb4bc

Contents?: true

Size: 328 Bytes

Versions: 3

Compression:

Stored size: 328 Bytes

Contents

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

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
carlosbrando-autotest-notification-1.8.1 lib/autotest_notification/cygwin.rb
carlosbrando-autotest-notification-1.8.2 lib/autotest_notification/cygwin.rb
samflores-autotest-notification-1.8.2 lib/autotest_notification/cygwin.rb