Sha256: 8a19d4264a9d7d6da796f220adc8fcfd523086d6f422ef357affcb4b3e0337d3

Contents?: true

Size: 494 Bytes

Versions: 75

Compression:

Stored size: 494 Bytes

Contents

module Katello
  module Agent
    class InstallPackageGroupMessage < BaseMessage
      def initialize(content:, consumer_id:)
        @groups = content
        @consumer_id = consumer_id
        @content_type = 'package_group'
        @method = 'install'
      end

      protected

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

Version data entries

75 entries across 75 versions & 1 rubygems

Version Path
katello-4.9.2 app/lib/katello/agent/install_package_group_message.rb
katello-4.8.4 app/lib/katello/agent/install_package_group_message.rb
katello-4.9.1 app/lib/katello/agent/install_package_group_message.rb
katello-4.8.3 app/lib/katello/agent/install_package_group_message.rb
katello-4.9.0 app/lib/katello/agent/install_package_group_message.rb
katello-4.7.6 app/lib/katello/agent/install_package_group_message.rb
katello-4.8.2 app/lib/katello/agent/install_package_group_message.rb
katello-4.9.0.rc2 app/lib/katello/agent/install_package_group_message.rb
katello-4.9.0.rc1 app/lib/katello/agent/install_package_group_message.rb
katello-4.8.1 app/lib/katello/agent/install_package_group_message.rb
katello-4.7.5 app/lib/katello/agent/install_package_group_message.rb
katello-4.8.0 app/lib/katello/agent/install_package_group_message.rb
katello-4.8.0.rc2 app/lib/katello/agent/install_package_group_message.rb
katello-4.7.4 app/lib/katello/agent/install_package_group_message.rb
katello-4.8.0.rc1 app/lib/katello/agent/install_package_group_message.rb
katello-4.7.3 app/lib/katello/agent/install_package_group_message.rb
katello-4.7.2 app/lib/katello/agent/install_package_group_message.rb
katello-4.7.1 app/lib/katello/agent/install_package_group_message.rb
katello-4.6.2.1 app/lib/katello/agent/install_package_group_message.rb
katello-4.6.2 app/lib/katello/agent/install_package_group_message.rb