Module: Notifu::Util

Included in:
Actor, Cleaner, Model::Event, Model::Issue, Processor
Defined in:
lib/notifu/util.rb

Class Method Summary collapse

Class Method Details

.action_log(worker, event) ⇒ Object


12
13
14
# File 'lib/notifu/util.rb', line 12

def self.action_log (worker, event)
  $logger.action_log worker, event
end

.log(prio, msg) ⇒ Object


8
9
10
# File 'lib/notifu/util.rb', line 8

def self.log(prio, msg)
  $logger.log prio, "JID-#{self.jid}: " + msg.to_s
end

.option(args) ⇒ Object


4
5
6
# File 'lib/notifu/util.rb', line 4

def self.option args
  self.instance_variable_set args.keys.first, args.values.first
end