Sha256: fb56bfdb37de421407cc7a3dea9dfee8be959ad47221ed3fb18d1bec841c54f6

Contents?: true

Size: 465 Bytes

Versions: 2

Compression:

Stored size: 465 Bytes

Contents

module Ddr
  module Notifications

    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"

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

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ddr-models-3.0.8 lib/ddr/notifications.rb
ddr-models-3.0.7 lib/ddr/notifications.rb