Class: Katello::Events::DeleteHostAgentQueue
- Inherits:
-
Object
- Object
- Katello::Events::DeleteHostAgentQueue
- Defined in:
- app/models/katello/events/delete_host_agent_queue.rb
Constant Summary collapse
- EVENT_TYPE =
'delete_host_agent_queue'.freeze
Instance Attribute Summary collapse
-
#metadata ⇒ Object
Returns the value of attribute metadata.
Instance Method Summary collapse
-
#initialize(_host_id) {|_self| ... } ⇒ DeleteHostAgentQueue
constructor
A new instance of DeleteHostAgentQueue.
- #run ⇒ Object
Constructor Details
#initialize(_host_id) {|_self| ... } ⇒ DeleteHostAgentQueue
Returns a new instance of DeleteHostAgentQueue.
8 9 10 |
# File 'app/models/katello/events/delete_host_agent_queue.rb', line 8 def initialize(_host_id) yield(self) if block_given? end |
Instance Attribute Details
#metadata ⇒ Object
Returns the value of attribute metadata.
6 7 8 |
# File 'app/models/katello/events/delete_host_agent_queue.rb', line 6 def end |
Instance Method Details
#run ⇒ Object
12 13 14 15 16 |
# File 'app/models/katello/events/delete_host_agent_queue.rb', line 12 def run if [:queue_name] Katello::Agent::Dispatcher.delete_client_queue(queue_name: [:queue_name]) end end |