Sha256: 9b28d1388a87252f41c44774bb11d5cb67c4243623abb706bb24154817d20113

Contents?: true

Size: 744 Bytes

Versions: 51

Compression:

Stored size: 744 Bytes

Contents

module Actions
  module Katello
    module Repository
      class RefreshRepository < Actions::Base
        def plan(repo, options = {})
          User.as_anonymous_admin do
            repo = ::Katello::Repository.find(repo.id)
            plan_action(Actions::Pulp3::Orchestration::Repository::RefreshIfNeeded,
                             repo, SmartProxy.default_capsule!, :dependency => options[:dependency])
            repo.smart_proxy_alternate_content_sources.each do |smart_proxy_acs|
              plan_action(::Actions::Pulp3::AlternateContentSource::RefreshRemote, smart_proxy_acs)
            end
            plan_self(:name => repo.name, :dependency => options[:dependency])
          end
        end
      end
    end
  end
end

Version data entries

51 entries across 51 versions & 1 rubygems

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