Class Nanoc::CLI::Commands::Watch::Notifier
In: lib/nanoc/cli/commands/watch.rb
Parent: Object

Allows sending user notifications in a cross-platform way.

Methods

notify  

Constants

TOOLS = %w( growlnotify notify-send ) unless defined? TOOLS   A list of commandline tool names that can be used to send notifications
FIND_BINARY_COMMAND = RUBY_PLATFORM =~ /mingw|mswin/ ? "where" : "which" unless defined? FIND_BINARY_COMMAND   The tool to use for discovering binaries’ locations

Public Instance methods

Send a notification. If no notifier is found, no notification will be created.

@param [String] message The message to include in the notification

[Validate]