Sha256: a23b0018bca3fec3a35965480eb2272dc62ec338c8467b5921422efc3a991f10

Contents?: true

Size: 403 Bytes

Versions: 75

Compression:

Stored size: 403 Bytes

Contents

module Katello
  module Events
    class DeleteHostAgentQueue
      EVENT_TYPE = 'delete_host_agent_queue'.freeze

      attr_accessor :metadata

      def initialize(_host_id)
        yield(self) if block_given?
      end

      def run
        if metadata[:queue_name]
          Katello::Agent::Dispatcher.delete_client_queue(queue_name: metadata[:queue_name])
        end
      end
    end
  end
end

Version data entries

75 entries across 75 versions & 1 rubygems

Version Path
katello-4.9.2 app/models/katello/events/delete_host_agent_queue.rb
katello-4.8.4 app/models/katello/events/delete_host_agent_queue.rb
katello-4.9.1 app/models/katello/events/delete_host_agent_queue.rb
katello-4.8.3 app/models/katello/events/delete_host_agent_queue.rb
katello-4.9.0 app/models/katello/events/delete_host_agent_queue.rb
katello-4.7.6 app/models/katello/events/delete_host_agent_queue.rb
katello-4.8.2 app/models/katello/events/delete_host_agent_queue.rb
katello-4.9.0.rc2 app/models/katello/events/delete_host_agent_queue.rb
katello-4.9.0.rc1 app/models/katello/events/delete_host_agent_queue.rb
katello-4.8.1 app/models/katello/events/delete_host_agent_queue.rb
katello-4.7.5 app/models/katello/events/delete_host_agent_queue.rb
katello-4.8.0 app/models/katello/events/delete_host_agent_queue.rb
katello-4.8.0.rc2 app/models/katello/events/delete_host_agent_queue.rb
katello-4.7.4 app/models/katello/events/delete_host_agent_queue.rb
katello-4.8.0.rc1 app/models/katello/events/delete_host_agent_queue.rb
katello-4.7.3 app/models/katello/events/delete_host_agent_queue.rb
katello-4.7.2 app/models/katello/events/delete_host_agent_queue.rb
katello-4.7.1 app/models/katello/events/delete_host_agent_queue.rb
katello-4.6.2.1 app/models/katello/events/delete_host_agent_queue.rb
katello-4.6.2 app/models/katello/events/delete_host_agent_queue.rb