Sha256: d57561c3d9ff7fa8321c1fdcac1707186c025bd03204d5e548d75f83cae65c07
Contents?: true
Size: 723 Bytes
Versions: 6
Compression:
Stored size: 723 Bytes
Contents
begin require 'terminal-notifier' rescue LoadError # NOOP - "TerminalNotifier" is optional # will only be used if it is installed! end def notify(message, options = {}, verbose = false) # print the given message to STDERR, if the # script is running with "--verbose" option subtitle = options[:subtitle] warn(subtitle ? "#{subtitle}: #{message}" : message) if $VERBOSE # send a given message to the Mac OS X Notification Center # but only if the git-multi script is running interactively # and if the "terminal-notifier" gem has been installed... interactive? && defined?(TerminalNotifier) && begin options[:title] ||= 'git-multi' TerminalNotifier.notify(message, options, verbose) end end
Version data entries
6 entries across 6 versions & 1 rubygems