Sha256: cb4f0ad1e3e7a8d161f2be02266a5a1899f0b85cb109f382ed35a80763a21236

Contents?: true

Size: 485 Bytes

Versions: 19

Compression:

Stored size: 485 Bytes

Contents

module Katello
  module Agent
    class UpdatePackageMessage < BaseMessage
      def initialize(content:, consumer_id:)
        @packages = content
        @consumer_id = consumer_id
        @content_type = 'rpm'
        @method = 'update'
      end

      protected

      def units
        @packages.map do |package|
          {
            type_id: @content_type,
            unit_key: {
              name: package
            }
          }
        end
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
katello-4.0.3 app/lib/katello/agent/update_package_message.rb
katello-4.0.2.1 app/lib/katello/agent/update_package_message.rb
katello-4.1.2.1 app/lib/katello/agent/update_package_message.rb
katello-4.0.2 app/lib/katello/agent/update_package_message.rb
katello-4.1.2 app/lib/katello/agent/update_package_message.rb
katello-4.1.1 app/lib/katello/agent/update_package_message.rb
katello-4.1.0 app/lib/katello/agent/update_package_message.rb
katello-4.0.1.2 app/lib/katello/agent/update_package_message.rb
katello-4.1.0.rc2.2 app/lib/katello/agent/update_package_message.rb
katello-4.1.0.rc2.1 app/lib/katello/agent/update_package_message.rb
katello-4.0.1.1 app/lib/katello/agent/update_package_message.rb
katello-4.1.0.rc2 app/lib/katello/agent/update_package_message.rb
katello-4.0.1 app/lib/katello/agent/update_package_message.rb
katello-4.1.0.rc1.1 app/lib/katello/agent/update_package_message.rb
katello-4.1.0.rc1 app/lib/katello/agent/update_package_message.rb
katello-4.0.0 app/lib/katello/agent/update_package_message.rb
katello-4.0.0.rc3.1 app/lib/katello/agent/update_package_message.rb
katello-4.0.0.rc3 app/lib/katello/agent/update_package_message.rb
katello-4.0.0.rc2 app/lib/katello/agent/update_package_message.rb