Sha256: 15dceebdc82b3d0374714db613bc5387dd1321eb1623bca4ede9a015dc054170

Contents?: true

Size: 422 Bytes

Versions: 29

Compression:

Stored size: 422 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"

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

  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
ddr-models-3.0.6 lib/ddr/notifications.rb
ddr-models-3.0.5 lib/ddr/notifications.rb
ddr-models-3.0.4 lib/ddr/notifications.rb
ddr-models-3.0.3 lib/ddr/notifications.rb
ddr-models-3.0.2 lib/ddr/notifications.rb
ddr-models-3.0.1 lib/ddr/notifications.rb
ddr-models-3.0.0 lib/ddr/notifications.rb
ddr-models-3.0.0.rc6 lib/ddr/notifications.rb
ddr-models-3.0.0.rc5 lib/ddr/notifications.rb
ddr-models-3.0.0.rc4 lib/ddr/notifications.rb
ddr-models-3.0.0.rc3 lib/ddr/notifications.rb
ddr-models-3.0.0.rc2 lib/ddr/notifications.rb
ddr-models-3.0.0.rc1 lib/ddr/notifications.rb
ddr-models-3.0.0.beta.22 lib/ddr/notifications.rb
ddr-models-3.0.0.beta.21 lib/ddr/notifications.rb
ddr-models-3.0.0.beta.20 lib/ddr/notifications.rb
ddr-models-3.0.0.beta.18 lib/ddr/notifications.rb
ddr-models-3.0.0.beta.17 lib/ddr/notifications.rb
ddr-models-3.0.0.beta.16 lib/ddr/notifications.rb
ddr-models-3.0.0.beta.15 lib/ddr/notifications.rb