Sha256: 795062e5b681db381b0f4b31ccb871ec8c24a2bb4f77e0225a42e2b898595fa6

Contents?: true

Size: 759 Bytes

Versions: 19

Compression:

Stored size: 759 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,
              {
                importkeys: true
              }
            ],
            classname: "Content",
            cntr: [[], {}],
            kws: {},
            method: @method
          },
          routing: [
            nil,
            recipient_address
          ],
          version: "2.0"
        }
      end

      def to_s
        json.to_json
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

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