Module Guard::Notifier::NotifySend
In: lib/guard/notifiers/notifysend.rb

System notifications using notify-send, a binary that ships with the libnotify-bin package on many Debian-based distributions.

@example Add the `:notifysend` notifier to your `Guardfile`

  notification :notifysend

Methods

available?   notify  

Constants

DEFAULTS = { :t => 3000   Default options for the notify-send program
SUPPORTED = [:u, :t, :i, :c, :h]   Full list of options supported by notify-send

Public Instance methods

Test if the notification program 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 @param [Hash] options additional notification library options @option options [String] c the notification category @option options [Number] t the number of milliseconds to display (1000, 3000)

[Validate]