Class: Katello::Agent::UpdatePackageMessage

Inherits:
BaseMessage
  • Object
show all
Defined in:
app/lib/katello/agent/update_package_message.rb

Instance Attribute Summary

Attributes inherited from BaseMessage

#dispatch_history_id, #recipient_address, #reply_to

Instance Method Summary collapse

Methods inherited from BaseMessage

#json, #to_s

Constructor Details

#initialize(content:, consumer_id:) ⇒ UpdatePackageMessage

Returns a new instance of UpdatePackageMessage.



4
5
6
7
8
9
# File 'app/lib/katello/agent/update_package_message.rb', line 4

def initialize(content:, consumer_id:)
  @packages = content
  @consumer_id = consumer_id
  @content_type = 'rpm'
  @method = 'update'
end