Sha256: d5be32779d7fb35f2bad21971467811a446bda6242294516de7ad993a16f53e5

Contents?: true

Size: 636 Bytes

Versions: 14

Compression:

Stored size: 636 Bytes

Contents

namespace :katello do
  namespace :upgrades do
    namespace '3.6' do
      desc "Republish FILE repos with relative paths including organization name"
      task :republish_file_repos => %w(environment check_ping) do
        User.current = User.anonymous_admin

        Katello::Repository.where(:content_type => Katello::Repository::FILE_TYPE).each do |repo|
          puts "Republishing file repo #{repo.name} (#{repo.id})..."
          ForemanTasks.sync_task(::Actions::Pulp::Repository::Refresh, repo)
          ForemanTasks.sync_task(::Actions::Katello::Repository::MetadataGenerate, repo)
        end
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
katello-3.8.1 lib/katello/tasks/upgrades/3.6/republish_file_repos.rake
katello-3.7.1.1 lib/katello/tasks/upgrades/3.6/republish_file_repos.rake
katello-3.7.1 lib/katello/tasks/upgrades/3.6/republish_file_repos.rake
katello-3.8.0 lib/katello/tasks/upgrades/3.6/republish_file_repos.rake
katello-3.8.0.rc3 lib/katello/tasks/upgrades/3.6/republish_file_repos.rake
katello-3.8.0.rc2 lib/katello/tasks/upgrades/3.6/republish_file_repos.rake
katello-3.7.0 lib/katello/tasks/upgrades/3.6/republish_file_repos.rake
katello-3.8.0.rc1 lib/katello/tasks/upgrades/3.6/republish_file_repos.rake
katello-3.7.0.rc2 lib/katello/tasks/upgrades/3.6/republish_file_repos.rake
katello-3.7.0.rc1 lib/katello/tasks/upgrades/3.6/republish_file_repos.rake
katello-3.6.0 lib/katello/tasks/upgrades/3.6/republish_file_repos.rake
katello-3.6.0.1.rc2 lib/katello/tasks/upgrades/3.6/republish_file_repos.rake
katello-3.6.0.rc2 lib/katello/tasks/upgrades/3.6/republish_file_repos.rake
katello-3.6.0.rc1 lib/katello/tasks/upgrades/3.6/republish_file_repos.rake