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

Version Path
katello-3.0.2 lib/katello/tasks/regenerate_repo_metadata.rake
katello-2.4.5 lib/katello/tasks/regenerate_repo_metadata.rake
katello-3.0.1 lib/katello/tasks/regenerate_repo_metadata.rake
katello-2.4.4 lib/katello/tasks/regenerate_repo_metadata.rake
katello-3.0.0 lib/katello/tasks/regenerate_repo_metadata.rake
katello-2.4.3 lib/katello/tasks/regenerate_repo_metadata.rake
katello-3.0.0.rc7 lib/katello/tasks/regenerate_repo_metadata.rake
katello-3.0.0.rc5 lib/katello/tasks/regenerate_repo_metadata.rake
katello-2.4.2 lib/katello/tasks/regenerate_repo_metadata.rake
katello-3.0.0.rc4 lib/katello/tasks/regenerate_repo_metadata.rake
katello-3.0.0.rc3 lib/katello/tasks/regenerate_repo_metadata.rake
katello-3.0.0.rc2 lib/katello/tasks/regenerate_repo_metadata.rake
katello-3.0.0.rc1 lib/katello/tasks/regenerate_repo_metadata.rake
katello-2.4.1 lib/katello/tasks/regenerate_repo_metadata.rake
katello-2.4.0 lib/katello/tasks/regenerate_repo_metadata.rake
katello-2.4.0.rc3 lib/katello/tasks/regenerate_repo_metadata.rake
katello-2.4.0.rc2 lib/katello/tasks/regenerate_repo_metadata.rake
katello-2.4.0.rc1 lib/katello/tasks/regenerate_repo_metadata.rake
katello-2.2.2 lib/katello/tasks/regenerate_repo_metadata.rake