Sha256: f2d7ce16b6cfc700761a17892d973cc79df32317228f3be1ae8ba717a4108837

Contents?: true

Size: 712 Bytes

Versions: 124

Compression:

Stored size: 712 Bytes

Contents

module Actions
  module Pulp3
    module ContentGuard
      class RefreshAllDistributions < Pulp3::Abstract
        def plan(smart_proxy)
          sequence do
            plan_action(Actions::Pulp3::ContentGuard::Refresh, smart_proxy)

            roots = ::Katello::RootRepository.where.not(:content_type => ::Katello::Repository::DOCKER_TYPE).where(:unprotected => false)
            repositories = ::Katello::Repository.where(:root => roots)
            if repositories.any?
              plan_action(::Actions::BulkAction, Actions::Pulp3::Repository::RefreshDistribution, repositories, smart_proxy.id, assume_content_guard_exists: true)
            end
          end
        end
      end
    end
  end
end

Version data entries

124 entries across 124 versions & 1 rubygems

Version Path
katello-4.16.0 app/lib/actions/pulp3/content_guard/refresh_all_distributions.rb
katello-4.15.1 app/lib/actions/pulp3/content_guard/refresh_all_distributions.rb
katello-4.16.0.rc2 app/lib/actions/pulp3/content_guard/refresh_all_distributions.rb
katello-4.16.0.rc1 app/lib/actions/pulp3/content_guard/refresh_all_distributions.rb
katello-4.14.3 app/lib/actions/pulp3/content_guard/refresh_all_distributions.rb
katello-4.14.2 app/lib/actions/pulp3/content_guard/refresh_all_distributions.rb
katello-4.15.0 app/lib/actions/pulp3/content_guard/refresh_all_distributions.rb
katello-4.15.0.rc2 app/lib/actions/pulp3/content_guard/refresh_all_distributions.rb
katello-4.15.0.rc1 app/lib/actions/pulp3/content_guard/refresh_all_distributions.rb
katello-4.14.1 app/lib/actions/pulp3/content_guard/refresh_all_distributions.rb
katello-4.14.0 app/lib/actions/pulp3/content_guard/refresh_all_distributions.rb
katello-4.14.0.rc3 app/lib/actions/pulp3/content_guard/refresh_all_distributions.rb
katello-4.14.0.rc2 app/lib/actions/pulp3/content_guard/refresh_all_distributions.rb
katello-4.14.0.rc1.1 app/lib/actions/pulp3/content_guard/refresh_all_distributions.rb
katello-4.14.0.rc1 app/lib/actions/pulp3/content_guard/refresh_all_distributions.rb
katello-4.13.1 app/lib/actions/pulp3/content_guard/refresh_all_distributions.rb
katello-4.13.0 app/lib/actions/pulp3/content_guard/refresh_all_distributions.rb
katello-4.12.1 app/lib/actions/pulp3/content_guard/refresh_all_distributions.rb
katello-4.13.0.rc1 app/lib/actions/pulp3/content_guard/refresh_all_distributions.rb
katello-4.12.0 app/lib/actions/pulp3/content_guard/refresh_all_distributions.rb