Module | Guard::Notifier::TerminalNotifier |
In: |
lib/guard/notifiers/terminal_notifier.rb
|
System notifications using the [terminal-notifier-guard](github.com/Springest/terminal-notifier-guard gem.
This gem is available for OS X 10.8 Mountain Lion and sends notifications to the OS X notification center.
@example Add the `terminal-notifier-guard` gem to your `Gemfile`
group :development gem 'terminal-notifier-guard' end
@example Add the `:terminal_notifier` notifier to your `Guardfile`
notification :terminal_notifier
@example Add the `:terminal_notifier` notifier with configuration options to your `Guardfile`
notification :terminal_notifier, app_name: "MyApp"
Test if the notification library is available.
@param [Boolean] silent true if no error messages should be shown @return [Boolean] the availability status
Show a system notification.
@param [String] type the notification type. Either ‘success’, ‘pending’, ‘failed’ or ‘notify’ @param [String] title the notification title @param [String] message the notification message body @param [String] image the path to the notification image (ignored) @param [Hash] options additional notification library options @option options [String] app_name name of your app @option options [String] execute a command @option options [String] activate an app bundle @option options [String] open some url or file