Sha256: 974f31f70a1fa7deec58e696cdd5a99b7f1beb66108f7dd035b36c08210b56e0

Contents?: true

Size: 519 Bytes

Versions: 5

Compression:

Stored size: 519 Bytes

Contents

require "terminal-notifier"

module Linner
  class Notifier
    class << self
      def info
        time = Time.now
        yield
        puts "šŸœ : Done in #{'%.3f' % (Time.now - time)}s."
      end

      def error(message)
        puts message = "šŸ‘» : #{message}!"
        if Linner.environment.notification && TerminalNotifier.available?
          TerminalNotifier.notify message, :title => 'Linner'
        end
      end

      def exit
        puts "\ršŸµ : Let's take a break!"
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
linner-0.2.0 lib/linner/notifier.rb
linner-0.1.5 lib/linner/notifier.rb
linner-0.1.4 lib/linner/notifier.rb
linner-0.1.3 lib/linner/notifier.rb
linner-0.1.2 lib/linner/notifier.rb