Sha256: 58658d72fc7210b76cd594405b86c5eb1d36b2bf7e8259b6628f3389c53775af

Contents?: true

Size: 810 Bytes

Versions: 56

Compression:

Stored size: 810 Bytes

Contents

module Katello
  module Agent
    class BaseMessage
      attr_accessor :dispatch_history_id, :recipient_address, :reply_to

      def json
        {
          data: {
            consumer_id: @consumer_id,
            dispatch_history_id: dispatch_history_id
          },
          replyto: reply_to,
          request: {
            args: [
              units, options
            ],
            classname: "Content",
            cntr: [[], {}],
            kws: {},
            method: @method
          },
          routing: [
            nil,
            recipient_address
          ],
          version: "2.0"
        }
      end

      def options # may be overridden by children
        {
          importkeys: true
        }
      end

      def to_s
        json.to_json
      end
    end
  end
end

Version data entries

56 entries across 56 versions & 1 rubygems

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