Sha256: 75c0ccd8b3834bb37a966d972b3ae9605b43b43cf87f278f4ebd738090663d05

Contents?: true

Size: 482 Bytes

Versions: 1

Compression:

Stored size: 482 Bytes

Contents

require "terminal-notifier"

module Linner
  class Notifier

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

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

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
linner-0.1.0 lib/linner/notifier.rb