Sha256: 7356791bd625c40f601393bbeba6fe5ea04ccd5357044bb1cac18c0bfb026490

Contents?: true

Size: 318 Bytes

Versions: 2

Compression:

Stored size: 318 Bytes

Contents

module Notifiers
  class Knotify < Notifiers::Base
    COMMAND = "dcop knotify default notify eventname"

    def to_s
      command = "#{COMMAND}"
      command << " '#{@title}'" if @title
      command << " '#{@message}'" if @message
      command << " '' ''"
      command << " 12 1"
      command
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
notifiers-1.2.2 lib/notifiers/knotify.rb
notifiers-1.2.1 lib/notifiers/knotify.rb