Module | Guard::Notifier::FileNotifier |
In: |
lib/guard/notifiers/file_notifier.rb
|
Writes guard notification results to a file
@example Add the `:file` notifier to your `Guardfile`
notification :file, path: 'tmp/guard_result'
DEFAULTS | = | { :format => "%s\n%s\n%s\n" | Default options for FileNotifier |
Test if the file notification option is available?
@param [Boolean] silent true if no error messages should be shown @param [Hash] options notifier options @return [Boolean] the availability status
Write the notification to a file. By default it writes type, title, and message separated by newlines.
@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] format printf style format for file contents @option options [String] path the path of where to write the file