Sha256: 716df4ed7ffcf699dcbfd5b30f0564512fe157de31554cafa06a40d3108da824

Contents?: true

Size: 578 Bytes

Versions: 182

Compression:

Stored size: 578 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.root.gpg_key_id != key_id
              plan_action(::Actions::Katello::Repository::Update,
                          repo.root,
                          :gpg_key_id => key_id)
            end
          end
        end
      end
    end
  end
end

Version data entries

182 entries across 182 versions & 1 rubygems

Version Path
katello-4.16.0 app/lib/actions/katello/product/repositories_gpg_reset.rb
katello-4.15.1 app/lib/actions/katello/product/repositories_gpg_reset.rb
katello-4.16.0.rc2 app/lib/actions/katello/product/repositories_gpg_reset.rb
katello-4.16.0.rc1 app/lib/actions/katello/product/repositories_gpg_reset.rb
katello-4.14.3 app/lib/actions/katello/product/repositories_gpg_reset.rb
katello-4.14.2 app/lib/actions/katello/product/repositories_gpg_reset.rb
katello-4.15.0 app/lib/actions/katello/product/repositories_gpg_reset.rb
katello-4.15.0.rc2 app/lib/actions/katello/product/repositories_gpg_reset.rb
katello-4.15.0.rc1 app/lib/actions/katello/product/repositories_gpg_reset.rb
katello-4.14.1 app/lib/actions/katello/product/repositories_gpg_reset.rb
katello-4.14.0 app/lib/actions/katello/product/repositories_gpg_reset.rb
katello-4.14.0.rc3 app/lib/actions/katello/product/repositories_gpg_reset.rb
katello-4.14.0.rc2 app/lib/actions/katello/product/repositories_gpg_reset.rb
katello-4.14.0.rc1.1 app/lib/actions/katello/product/repositories_gpg_reset.rb
katello-4.14.0.rc1 app/lib/actions/katello/product/repositories_gpg_reset.rb
katello-4.13.1 app/lib/actions/katello/product/repositories_gpg_reset.rb
katello-4.13.0 app/lib/actions/katello/product/repositories_gpg_reset.rb
katello-4.12.1 app/lib/actions/katello/product/repositories_gpg_reset.rb
katello-4.13.0.rc1 app/lib/actions/katello/product/repositories_gpg_reset.rb
katello-4.12.0 app/lib/actions/katello/product/repositories_gpg_reset.rb