Sha256: 9351c539273514a37342b456361f1f1688d0b9c6d5e6e8e5e9a514a56b9145da
Contents?: true
Size: 747 Bytes
Versions: 24
Compression:
Stored size: 747 Bytes
Contents
module Ddr module Events class FixityCheckEvent < Event include PreservationEventBehavior include ReindexObjectAfterSave self.preservation_event_type = :fix self.description = "Fixity check of attached files".freeze # Message sent by ActiveSupport::Notifications def self.call(*args) super do |payload| results = payload.delete(:results) payload[:outcome] = results.success? ? SUCCESS : FAILURE payload[:detail] = "Fixity check results:\n\n#{results}" end end def to_solr { Ddr::Index::Fields::LAST_FIXITY_CHECK_ON => event_date_time_s, Ddr::Index::Fields::LAST_FIXITY_CHECK_OUTCOME => outcome } end end end end
Version data entries
24 entries across 24 versions & 1 rubygems