Sha256: 55e95c31a0792de961676628f136245bc895c8613e47464029e9d4352df5d72d
Contents?: true
Size: 646 Bytes
Versions: 19
Compression:
Stored size: 646 Bytes
Contents
namespace :katello do task :regenerate_repo_metadata => ["environment"] do User.current = User.first #set a user for orchestration tasks = [] 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
19 entries across 19 versions & 1 rubygems