Sha256: 29fb6c936ef9be0680942dd82f5b19d6c5bacb8dc99107207d740d25a6d712a0

Contents?: true

Size: 482 Bytes

Versions: 75

Compression:

Stored size: 482 Bytes

Contents

module Katello
  module Agent
    class InstallErrataMessage < BaseMessage
      def initialize(content:, consumer_id:)
        @errata_ids = content
        @consumer_id = consumer_id
        @content_type = 'erratum'
        @method = 'install'
      end

      protected

      def units
        @errata_ids.map do |id|
          {
            type_id: @content_type,
            unit_key: {
              id: id
            }
          }
        end
      end
    end
  end
end

Version data entries

75 entries across 75 versions & 1 rubygems

Version Path
katello-4.4.0.rc1 app/lib/katello/agent/install_errata_message.rb
katello-4.2.2 app/lib/katello/agent/install_errata_message.rb
katello-4.3.0 app/lib/katello/agent/install_errata_message.rb
katello-4.3.0.rc4 app/lib/katello/agent/install_errata_message.rb
katello-4.3.0.rc3 app/lib/katello/agent/install_errata_message.rb
katello-4.3.0.rc2.1 app/lib/katello/agent/install_errata_message.rb
katello-4.3.0.rc2 app/lib/katello/agent/install_errata_message.rb
katello-4.3.0.rc1 app/lib/katello/agent/install_errata_message.rb
katello-4.2.1 app/lib/katello/agent/install_errata_message.rb
katello-4.2.0.1 app/lib/katello/agent/install_errata_message.rb
katello-4.1.4 app/lib/katello/agent/install_errata_message.rb
katello-4.0.3 app/lib/katello/agent/install_errata_message.rb
katello-4.2.0.1.rc3 app/lib/katello/agent/install_errata_message.rb
katello-4.2.0.1.rc2 app/lib/katello/agent/install_errata_message.rb
katello-4.2.0.rc2 app/lib/katello/agent/install_errata_message.rb
katello-4.1.3 app/lib/katello/agent/install_errata_message.rb
katello-4.2.0.rc1 app/lib/katello/agent/install_errata_message.rb
katello-4.0.2.1 app/lib/katello/agent/install_errata_message.rb
katello-4.1.2.1 app/lib/katello/agent/install_errata_message.rb
katello-4.0.2 app/lib/katello/agent/install_errata_message.rb