Sha256: b3bb2cb570308cd86b57e448582ca05d4dcd51650fd37ec29795ff2fa9115157

Contents?: true

Size: 1008 Bytes

Versions: 177

Compression:

Stored size: 1008 Bytes

Contents

module Actions
  module Katello
    module Product
      class RepositoriesCertsReset < Actions::AbstractAsyncTask
        def plan(product)
          ssl_ca_cert_id = product.ssl_ca_cert_id
          ssl_client_cert_id = product.ssl_client_cert_id
          ssl_client_key_id = product.ssl_client_key_id
          # Plan Repository::Update only for repositories which have different certs key
          product.repositories.each do |repo|
            if (repo.root.ssl_ca_cert_id != ssl_ca_cert_id ||
                repo.root.ssl_client_cert_id != ssl_client_cert_id ||
                repo.root.ssl_client_key_id != ssl_client_key_id)
              plan_action(::Actions::Katello::Repository::Update,
                          repo.root,
                          :ssl_ca_cert_id => ssl_ca_cert_id,
                          :ssl_client_cert_id => ssl_client_cert_id,
                          :ssl_client_key_id => ssl_client_key_id)
            end
          end
        end
      end
    end
  end
end

Version data entries

177 entries across 177 versions & 1 rubygems

Version Path
katello-4.2.0.rc2 app/lib/actions/katello/product/repositories_certs_reset.rb
katello-4.1.3 app/lib/actions/katello/product/repositories_certs_reset.rb
katello-4.2.0.rc1 app/lib/actions/katello/product/repositories_certs_reset.rb
katello-4.0.2.1 app/lib/actions/katello/product/repositories_certs_reset.rb
katello-4.1.2.1 app/lib/actions/katello/product/repositories_certs_reset.rb
katello-4.0.2 app/lib/actions/katello/product/repositories_certs_reset.rb
katello-4.1.2 app/lib/actions/katello/product/repositories_certs_reset.rb
katello-3.18.4 app/lib/actions/katello/product/repositories_certs_reset.rb
katello-4.1.1 app/lib/actions/katello/product/repositories_certs_reset.rb
katello-4.1.0 app/lib/actions/katello/product/repositories_certs_reset.rb
katello-4.0.1.2 app/lib/actions/katello/product/repositories_certs_reset.rb
katello-3.18.3.1 app/lib/actions/katello/product/repositories_certs_reset.rb
katello-4.1.0.rc2.2 app/lib/actions/katello/product/repositories_certs_reset.rb
katello-4.1.0.rc2.1 app/lib/actions/katello/product/repositories_certs_reset.rb
katello-4.0.1.1 app/lib/actions/katello/product/repositories_certs_reset.rb
katello-3.18.3 app/lib/actions/katello/product/repositories_certs_reset.rb
katello-4.1.0.rc2 app/lib/actions/katello/product/repositories_certs_reset.rb
katello-4.0.1 app/lib/actions/katello/product/repositories_certs_reset.rb
katello-4.1.0.rc1.1 app/lib/actions/katello/product/repositories_certs_reset.rb
katello-4.1.0.rc1 app/lib/actions/katello/product/repositories_certs_reset.rb