Sha256: a69a3711ebac4039ee04363327151956d291a987e267cb3da89db450d977bc62

Contents?: true

Size: 753 Bytes

Versions: 43

Compression:

Stored size: 753 Bytes

Contents

#          Copyright (c) 2008 Michael Fellinger m.fellinger@gmail.com
# All files in this distribution are subject to the terms of the Ruby license.

module Ramaze
  module Logger

    # Informer for the Knotify notfication system used on KDE.
    # Doesn't need any special libraries.

    class Knotify
      include Logging

      trait :present => 16

      # Please see for more information on the API used here:
      # http://lukeplant.me.uk/articles.php?id=3

      def log(tag, *messages)
        present = class_trait[:present]
        tag = tag.to_s.capitalize
        messages.flatten.each do |message|
          system(%{dcop knotify default notify Ramaze "#{tag}" "#{message}" '' '' #{present} 0})
        end
      end
    end

  end
end

Version data entries

43 entries across 43 versions & 5 rubygems

Version Path
Pistos-ramaze-2008.09 lib/ramaze/log/knotify.rb
Pistos-ramaze-2008.12 lib/ramaze/log/knotify.rb
Pistos-ramaze-2009.01 lib/ramaze/log/knotify.rb
Pistos-ramaze-2009.02 lib/ramaze/log/knotify.rb
Pistos-ramaze-2009.04.08 lib/ramaze/log/knotify.rb
Pistos-ramaze-2009.06.12 lib/ramaze/log/knotify.rb
manveru-ramaze-2008.07 lib/ramaze/log/knotify.rb
manveru-ramaze-2008.08 lib/ramaze/log/knotify.rb
manveru-ramaze-2008.09 lib/ramaze/log/knotify.rb
manveru-ramaze-2008.10 lib/ramaze/log/knotify.rb
manveru-ramaze-2008.12 lib/ramaze/log/knotify.rb
manveru-ramaze-2009.01 lib/ramaze/log/knotify.rb
manveru-ramaze-2009.04.01 lib/ramaze/log/knotify.rb
manveru-ramaze-2009.04.08 lib/ramaze/log/knotify.rb
manveru-ramaze-2009.04.18 lib/ramaze/log/knotify.rb
manveru-ramaze-2009.04.22 lib/ramaze/log/knotify.rb
manveru-ramaze-2009.04 lib/ramaze/log/knotify.rb
manveru-ramaze-2009.05.08 lib/ramaze/log/knotify.rb
manveru-ramaze-2009.05 lib/ramaze/log/knotify.rb
manveru-ramaze-2009.06.04 lib/ramaze/log/knotify.rb