Sha256: 2e90d250c4f135a21d21ff70fc30927fb9c6b4522951dad10438be2691dd8efe
Contents?: true
Size: 640 Bytes
Versions: 4
Compression:
Stored size: 640 Bytes
Contents
# frozen_string_literal: true class UniformNotifier class TerminalNotifier < Base class << self def active? !!UniformNotifier.terminal_notifier end protected def _out_of_channel_notify(data) unless defined?(::TerminalNotifier) begin require 'terminal-notifier' rescue LoadError raise NotificationError, 'You must install the terminal-notifier gem to use terminal_notifier: `gem install terminal-notifier`' end end ::TerminalNotifier.notify(data[:body], title: data[:title]) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems