Sha256: c21f364d516ab880e93c6518e211183dfd448bedf7331d867508d777a7bfdb5e
Contents?: true
Size: 630 Bytes
Versions: 11
Compression:
Stored size: 630 Bytes
Contents
namespace :katello do task :regenerate_repo_metadata => ["environment"] do User.current = User.first #set a user for orchestration puts "Regenerating repository information for all repositories:\n" Katello::Repository.all.each_with_index do |repo, i| puts "Regenerating #{i + 1}/#{repos.count} (#{repo.pulp_id})\n" Katello::PulpTaskStatus.wait_for_tasks(repo.generate_metadata(:force_regeneration => true)) end end task :refresh_pulp_repo_details => ["environment"] do User.current = User.first Katello::Product.all.each do |product| product.update_repositories end end end
Version data entries
11 entries across 11 versions & 1 rubygems