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"
MIGRATION =
"migration.events.ddr"
FILE_SAVE =
"save.file.active_fedora"

Class Method Summary collapse

Class Method Details

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



13
14
15
16
# File 'lib/ddr/notifications.rb', line 13

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