Sha256: 7bf2a48f389c152c532f390c44120ecb992120ac6925bec97425900bb9625d48

Contents?: true

Size: 387 Bytes

Versions: 209

Compression:

Stored size: 387 Bytes

Contents

module Katello
  module Events
    class ImportPool
      EVENT_TYPE = 'import_pool'.freeze

      def initialize(pool_id)
        @pool = ::Katello::Pool.find_by(:id => pool_id)
      end

      def run
        @pool.try(:import_data)
      rescue RestClient::ResourceNotFound
        Rails.logger.warn "skipped re-index of non-existent pool #{@pool.cp_id}"
      end
    end
  end
end

Version data entries

209 entries across 209 versions & 1 rubygems

Version Path
katello-4.7.3 app/models/katello/events/import_pool.rb
katello-4.7.2 app/models/katello/events/import_pool.rb
katello-4.7.1 app/models/katello/events/import_pool.rb
katello-4.6.2.1 app/models/katello/events/import_pool.rb
katello-4.6.2 app/models/katello/events/import_pool.rb
katello-4.7.0 app/models/katello/events/import_pool.rb
katello-4.6.1 app/models/katello/events/import_pool.rb
katello-4.7.0.rc2 app/models/katello/events/import_pool.rb
katello-4.7.0.rc1 app/models/katello/events/import_pool.rb
katello-4.4.2.2 app/models/katello/events/import_pool.rb
katello-4.4.2.1 app/models/katello/events/import_pool.rb
katello-4.4.2 app/models/katello/events/import_pool.rb
katello-4.5.1 app/models/katello/events/import_pool.rb
katello-4.6.0 app/models/katello/events/import_pool.rb
katello-4.6.0.rc2 app/models/katello/events/import_pool.rb
katello-4.6.0.rc1 app/models/katello/events/import_pool.rb
katello-4.5.0 app/models/katello/events/import_pool.rb
katello-4.5.0.rc2 app/models/katello/events/import_pool.rb
katello-4.4.1 app/models/katello/events/import_pool.rb
katello-4.5.0.rc1 app/models/katello/events/import_pool.rb