Sha256: 6932f0af5eb3733071fbfcbd823d9146c0aae258441c6726e24b0e0f999cf645

Contents?: true

Size: 525 Bytes

Versions: 11

Compression:

Stored size: 525 Bytes

Contents

namespace :katello do
  namespace :upgrades do
    namespace '2.2' do
      task :update_metadata_expire => ["environment"]  do
        User.current = User.anonymous_api_admin
        puts _("Updating Expire Metadata for Custom Content")

        Katello::Product.find_each do |product|
          unless product.redhat?
            product.repositories.each do |repo|
              ForemanTasks.sync_task(::Actions::Katello::Repository::Update, repo, {})
            end
          end
        end
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
katello-2.4.5 lib/katello/tasks/upgrades/2.2/update_metadata_expire.rake
katello-2.4.4 lib/katello/tasks/upgrades/2.2/update_metadata_expire.rake
katello-2.4.3 lib/katello/tasks/upgrades/2.2/update_metadata_expire.rake
katello-2.4.2 lib/katello/tasks/upgrades/2.2/update_metadata_expire.rake
katello-3.0.0.rc1 lib/katello/tasks/upgrades/2.2/update_metadata_expire.rake
katello-2.4.1 lib/katello/tasks/upgrades/2.2/update_metadata_expire.rake
katello-2.4.0 lib/katello/tasks/upgrades/2.2/update_metadata_expire.rake
katello-2.4.0.rc3 lib/katello/tasks/upgrades/2.2/update_metadata_expire.rake
katello-2.4.0.rc2 lib/katello/tasks/upgrades/2.2/update_metadata_expire.rake
katello-2.4.0.rc1 lib/katello/tasks/upgrades/2.2/update_metadata_expire.rake
katello-2.2.2 lib/katello/tasks/upgrades/2.2/update_metadata_expire.rake