Class: Katello::Events::DeleteHostAgentQueue

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(_host_id) {|_self| ... } ⇒ DeleteHostAgentQueue

Returns a new instance of DeleteHostAgentQueue.

Yields:

  • (_self)

Yield Parameters:



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

#metadataObject

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

#runObject



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