Sha256: 860ffbaddced7cbf43ff2885fe58f44129baf801f9b6b39ba395642b1f0338ce
Contents?: true
Size: 825 Bytes
Versions: 52
Compression:
Stored size: 825 Bytes
Contents
namespace :katello do namespace :upgrades do namespace '3.0' do task :update_puppet_repository_distributors => ["environment"] do User.current = User.anonymous_api_admin puts _("Updating Puppet Repository Distributors") Katello::Repository.puppet_type.each do |repo| ForemanTasks.sync_task(::Actions::Pulp::Repository::Refresh, repo) ForemanTasks.sync_task(::Actions::Katello::Repository::MetadataGenerate, repo) end puts _("Updating Content View Puppet Environment Distributors") Katello::ContentViewPuppetEnvironment.all.each do |repo| ForemanTasks.sync_task(::Actions::Pulp::Repository::Refresh, repo) ForemanTasks.sync_task(::Actions::Katello::Repository::MetadataGenerate, repo) end end end end end
Version data entries
52 entries across 52 versions & 1 rubygems