Sha256: e5cf3299cb010c6c53e679e804941ea1dd0d7f52dbfe3fb54d977b28f6e883d4
Contents?: true
Size: 639 Bytes
Versions: 11
Compression:
Stored size: 639 Bytes
Contents
namespace :katello do namespace :upgrades do namespace '2.2' do task :update_gpg_key_urls => ["environment"] do User.current = User.anonymous_api_admin puts _("Importing GPG Key Urls to support Capsule Communication") Katello::Product.find_each do |product| unless product.redhat? product.repositories.each do |repo| if repo.yum_gpg_key_url && repo.yum_gpg_key_url != repo.content.gpgUrl ForemanTasks.sync_task(::Actions::Katello::Repository::Update, repo, {}) end end end end end end end end
Version data entries
11 entries across 11 versions & 1 rubygems