Sha256: 22e5aca82546ce6af1473c461364080daf8ab19554e3d5e8d15ae6b9a6b206f7

Contents?: true

Size: 370 Bytes

Versions: 10

Compression:

Stored size: 370 Bytes

Contents

module Katello
  module Events
    class ImportHostErrata
      EVENT_TYPE = 'import_host_errata'.freeze

      def initialize(object_id)
        @host = ::Host.find_by_id(object_id)
        fail "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

10 entries across 10 versions & 1 rubygems

Version Path
katello-3.2.1.1 app/models/katello/events/import_host_errata.rb
katello-3.2.1 app/models/katello/events/import_host_errata.rb
katello-3.2.0 app/models/katello/events/import_host_errata.rb
katello-3.2.0.rc3 app/models/katello/events/import_host_errata.rb
katello-3.2.0.rc2 app/models/katello/events/import_host_errata.rb
katello-3.2.0.rc1.1 app/models/katello/events/import_host_errata.rb
katello-3.2.0.rc1 app/models/katello/events/import_host_errata.rb
katello-3.1.0.1 app/models/katello/events/import_host_errata.rb
katello-3.1.0 app/models/katello/events/import_host_errata.rb
katello-3.1.0.rc2.1 app/models/katello/events/import_host_errata.rb