Sha256: d51b71593fa9e1286d02e2dd1201d47596353bd2233840473740d2e2813ff8a4

Contents?: true

Size: 308 Bytes

Versions: 3

Compression:

Stored size: 308 Bytes

Contents

require 'terminal-notifier' if TomatoHarvest::OS.mac?

module TomatoHarvest
  class Notifier
    class NotificationCenter
      def notify(message, opts = {})
        title = 'TomatoHarvest'

        TerminalNotifier.notify message, :title => title, :subtitle => opts[:subtitle]
      end
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tomatoharvest-0.1.1 lib/tomatoharvest/notifier/notification_center.rb
tomatoharvest-0.1.0 lib/tomatoharvest/notifier/notification_center.rb
tomatoharvest-0.0.1 lib/tomatoharvest/notifier/notification_center.rb