Informer for the Growl notification system Growl lets Mac OS X applications unintrusively tell you when things happen.
Growl can be downloaded from the following website: growl.info/
Takes the options from the default trait for merging.
@param [Hash] options A hash containing extra options to use when
initializing the Growl logger.
# File lib/ramaze/log/growl.rb, line 32 def initialize(options = {}) options = class_trait[:defaults].merge(options).values_at( :host, :name, :all_notifies, :default_notifies, :password ) super(*options) end
Integration to Logging
@param [String] tag @param [Hash] args
# File lib/ramaze/log/growl.rb, line 46 def log(tag, *args) begin notify(tag.to_s, Time.now.strftime("%X"), args.join("\n")[0..100]) rescue Errno::EMSGSIZE # Send size was to big (not really), ignore end end
Generated with the Darkfish Rdoc Generator 2.