Sha256: 84efcf17435ed55f43c5a3a6cfaf1fed475c99576703be8f8fc075aeb97732c7
Contents?: true
Size: 397 Bytes
Versions: 129
Compression:
Stored size: 397 Bytes
Contents
module Katello module Events class ImportHostApplicability EVENT_TYPE = 'import_host_applicability'.freeze def initialize(object_id) @host = ::Host.find_by_id(object_id) Rails.logger.warn "Host not found for ID #{object_id}" if @host.nil? end def run @host.content_facet.try(:import_applicability, true) if @host end end end end
Version data entries
129 entries across 129 versions & 1 rubygems