visionmedia/pomo

View on GitHub
lib/pomo/notifier/notification_center_notifier.rb

Summary

Maintainability
A
0 mins
Test Coverage
require 'terminal-notifier' if Pomo::OS.mac?

module Pomo
  class Notifier
    class NotificationCenterNotifier
      def notify(message, opts = {})
        title = 'Pomo'

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

  end
end