Module: Ddr::Notifications

Defined in:
lib/ddr/notifications.rb

Constant Summary collapse

FIXITY_CHECK =
"fixity_check.events.ddr"
VIRUS_CHECK =
"virus_check.events.ddr"
CREATION =
"creation.events.ddr"
UPDATE =
"update.events.ddr"
DELETION =
"deletion.events.ddr"

Class Method Summary collapse

Class Method Details

.notify_event(type, args = {}) ⇒ Object



10
11
12
13
# File 'lib/ddr/notifications.rb', line 10

def self.notify_event(type, args={})
  name = "#{type}.events.ddr"
  ActiveSupport::Notifications.instrument(name, args)
end