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.4.0.rc1 app/models/katello/events/delete_host_agent_queue.rb
katello-4.2.2 app/models/katello/events/delete_host_agent_queue.rb
katello-4.3.0 app/models/katello/events/delete_host_agent_queue.rb
katello-4.3.0.rc4 app/models/katello/events/delete_host_agent_queue.rb
katello-4.3.0.rc3 app/models/katello/events/delete_host_agent_queue.rb
katello-4.3.0.rc2.1 app/models/katello/events/delete_host_agent_queue.rb
katello-4.3.0.rc2 app/models/katello/events/delete_host_agent_queue.rb
katello-4.3.0.rc1 app/models/katello/events/delete_host_agent_queue.rb
katello-4.2.1 app/models/katello/events/delete_host_agent_queue.rb
katello-4.2.0.1 app/models/katello/events/delete_host_agent_queue.rb
katello-4.1.4 app/models/katello/events/delete_host_agent_queue.rb
katello-4.0.3 app/models/katello/events/delete_host_agent_queue.rb
katello-4.2.0.1.rc3 app/models/katello/events/delete_host_agent_queue.rb
katello-4.2.0.1.rc2 app/models/katello/events/delete_host_agent_queue.rb
katello-4.2.0.rc2 app/models/katello/events/delete_host_agent_queue.rb
katello-4.1.3 app/models/katello/events/delete_host_agent_queue.rb
katello-4.2.0.rc1 app/models/katello/events/delete_host_agent_queue.rb
katello-4.0.2.1 app/models/katello/events/delete_host_agent_queue.rb
katello-4.1.2.1 app/models/katello/events/delete_host_agent_queue.rb
katello-4.0.2 app/models/katello/events/delete_host_agent_queue.rb