Sha256: ee3c5cba7dc9d892aee1673553169a9230b45b3a943119162f0501f459a08643

Contents?: true

Size: 321 Bytes

Versions: 15

Compression:

Stored size: 321 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 #{EXPIRATION_IN_SECONDS}"
      end
      
      def get_image_path(img)
        `cygpath -m #{img}`
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 7 rubygems

Version Path
blackwinter-autotest-notification-1.8.0 lib/autotest_notification/cygwin.rb
carlosbrando-autotest-notification-1.1.2 lib/autotest_notification/cygwin.rb
carlosbrando-autotest-notification-1.2.0 lib/autotest_notification/cygwin.rb
carlosbrando-autotest-notification-1.3.0 lib/autotest_notification/cygwin.rb
carlosbrando-autotest-notification-1.4.0 lib/autotest_notification/cygwin.rb
carlosbrando-autotest-notification-1.5.0 lib/autotest_notification/cygwin.rb
carlosbrando-autotest-notification-1.6.0 lib/autotest_notification/cygwin.rb
carlosbrando-autotest-notification-1.7.3 lib/autotest_notification/cygwin.rb
carlosbrando-autotest-notification-1.8.0 lib/autotest_notification/cygwin.rb
dcrec1-autotest-notification-1.7.3 lib/autotest_notification/cygwin.rb
notch8-autotest-notification-1.2.0 lib/autotest_notification/cygwin.rb
tapajos-autotest-notification-1.1.2 lib/autotest_notification/cygwin.rb
tapajos-autotest-notification-1.4.0 lib/autotest_notification/cygwin.rb
tchandy-autotest-notification-1.4.0 lib/autotest_notification/cygwin.rb
urubatan-autotest-notification-1.4.0 lib/autotest_notification/cygwin.rb