Sha256: 8c12c71398c80fddc5accdc0c4dec080ab40c26c293845d6c3a06245ddaa4a5f

Contents?: true

Size: 383 Bytes

Versions: 75

Compression:

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

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

  end
end

Version data entries

75 entries across 75 versions & 1 rubygems

Version Path
ddr-models-2.6.2 lib/ddr/notifications.rb
ddr-models-2.6.1 lib/ddr/notifications.rb
ddr-models-2.6.0 lib/ddr/notifications.rb
ddr-models-2.6.0.rc4 lib/ddr/notifications.rb
ddr-models-2.6.0.rc3 lib/ddr/notifications.rb
ddr-models-2.6.0.rc2 lib/ddr/notifications.rb
ddr-models-2.6.0.rc1 lib/ddr/notifications.rb
ddr-models-2.5.3 lib/ddr/notifications.rb
ddr-models-2.5.2 lib/ddr/notifications.rb
ddr-models-2.5.1 lib/ddr/notifications.rb
ddr-models-2.5.0 lib/ddr/notifications.rb
ddr-models-2.5.0.rc1 lib/ddr/notifications.rb
ddr-models-2.4.16 lib/ddr/notifications.rb
ddr-models-2.4.15 lib/ddr/notifications.rb
ddr-models-2.4.14 lib/ddr/notifications.rb
ddr-models-2.4.13 lib/ddr/notifications.rb
ddr-models-2.4.12 lib/ddr/notifications.rb
ddr-models-2.4.11 lib/ddr/notifications.rb
ddr-models-2.4.10 lib/ddr/notifications.rb
ddr-models-2.4.9 lib/ddr/notifications.rb