Sha256: 6906cdc09dc215bd92633d49126cea5622951b8cfb8862e9ac27033db2e29309

Contents?: true

Size: 568 Bytes

Versions: 71

Compression:

Stored size: 568 Bytes

Contents

module Actions
  module Katello
    module Product
      class RepositoriesGpgReset < Actions::AbstractAsyncTask
        def plan(product)
          key_id = product.gpg_key_id
          # Plan Repository::Update only for repositories which have different gpg key
          product.repositories.each do |repo|
            if repo.gpg_key_id != key_id
              plan_action(::Actions::Katello::Repository::Update,
                          repo,
                          :gpg_key_id => key_id)
            end
          end
        end
      end
    end
  end
end

Version data entries

71 entries across 71 versions & 1 rubygems

Version Path
katello-3.9.1 app/lib/actions/katello/product/repositories_gpg_reset.rb
katello-3.9.0 app/lib/actions/katello/product/repositories_gpg_reset.rb
katello-3.8.1 app/lib/actions/katello/product/repositories_gpg_reset.rb
katello-3.9.0.rc2 app/lib/actions/katello/product/repositories_gpg_reset.rb
katello-3.9.0.rc1 app/lib/actions/katello/product/repositories_gpg_reset.rb
katello-3.7.1.1 app/lib/actions/katello/product/repositories_gpg_reset.rb
katello-3.7.1 app/lib/actions/katello/product/repositories_gpg_reset.rb
katello-3.8.0 app/lib/actions/katello/product/repositories_gpg_reset.rb
katello-3.8.0.rc3 app/lib/actions/katello/product/repositories_gpg_reset.rb
katello-3.8.0.rc2 app/lib/actions/katello/product/repositories_gpg_reset.rb
katello-3.7.0 app/lib/actions/katello/product/repositories_gpg_reset.rb
katello-3.8.0.rc1 app/lib/actions/katello/product/repositories_gpg_reset.rb
katello-3.7.0.rc2 app/lib/actions/katello/product/repositories_gpg_reset.rb
katello-3.7.0.rc1 app/lib/actions/katello/product/repositories_gpg_reset.rb
katello-3.5.2 app/lib/actions/katello/product/repositories_gpg_reset.rb
katello-3.6.0 app/lib/actions/katello/product/repositories_gpg_reset.rb
katello-3.6.0.1.rc2 app/lib/actions/katello/product/repositories_gpg_reset.rb
katello-3.6.0.rc2 app/lib/actions/katello/product/repositories_gpg_reset.rb
katello-3.6.0.rc1 app/lib/actions/katello/product/repositories_gpg_reset.rb
katello-3.5.1.1 app/lib/actions/katello/product/repositories_gpg_reset.rb