Sha256: 1abf19cec0df9e5284663d50f2d6ff1f86aef51fcfc8e369e900259ad6cc44a8

Contents?: true

Size: 290 Bytes

Versions: 2

Compression:

Stored size: 290 Bytes

Contents

module AutotestNotification
  class Windows
    class << self
      def notify(title, msg, img)
        img = `cygpath -m #{img}` if RUBY_PLATFORM =~ /cygwin/
        img.strip!

        system "sncmd /m '#{title}' '#{msg}' '#{img}' /t #{EXPIRATION_IN_SECONDS}"
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
carlosbrando-autotest-notification-0.1.0 lib/autotest_notification/windows.rb
urubatan-autotest-notification-0.1.0 lib/autotest_notification/windows.rb