Class: Katello::Agent::RemovePackageMessage

Inherits:
BaseMessage
  • Object
show all
Defined in:
app/lib/katello/agent/remove_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, #options, #to_s

Constructor Details

#initialize(content:, consumer_id:) ⇒ RemovePackageMessage

Returns a new instance of RemovePackageMessage.



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

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