Sha256: cfb7224b009e263e22ca8681725f8a11bcd6fe02049cc49858796f646cbb8cd7
Contents?: true
Size: 804 Bytes
Versions: 3
Compression:
Stored size: 804 Bytes
Contents
# Copyright (c) 2006 Michael Fellinger m.fellinger@gmail.com # All files in this distribution are subject to the terms of the Ruby license. require 'ruby-growl' module Ramaze class Growl < ::Growl trait :defaults => { :name => 'walrus', :host => 'localhost', :password => 'walrus', :all_notifies => %w[error warn debug info], :default_notifies => %w[error warn info] } def initialize(options = {}) options = class_trait[:defaults].merge(options).values_at(:host, :name, :all_notifies, :default_notifies, :password) super(*options) end def inform(tag, *args) 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 end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ramaze-0.1.0 | lib/ramaze/inform/growl.rb |
ramaze-0.1.2 | lib/ramaze/inform/growl.rb |
ramaze-0.1.1 | lib/ramaze/inform/growl.rb |