Sha256: d89c69e83db9b116a01ea8df65015561105b1a583d95b5073c5f3d0a63574a43
Contents?: true
Size: 1.06 KB
Versions: 22
Compression:
Stored size: 1.06 KB
Contents
module Actions module Pulp3 module Repository class RefreshDistribution < Pulp3::AbstractAsyncTask include Helpers::Presenter def plan(repository, smart_proxy, options = {}) smart_proxy = SmartProxy.unscoped.find_by(id: smart_proxy) #support bulk actions sequence do if !repository.unprotected && !options[:assume_content_guard_exists] plan_action(::Actions::Pulp3::ContentGuard::Refresh, smart_proxy) end refresh_options = { :repository_id => repository.id, :smart_proxy_id => smart_proxy.id } action = plan_self(refresh_options) plan_action(SaveDistributionReferences, repository, smart_proxy, action.output) end end def invoke_external_task repo = ::Katello::Repository.find(input[:repository_id]) #used in switchover, need to assume pulp3 repo.backend_service(smart_proxy, true).with_mirror_adapter.refresh_distributions end end end end end
Version data entries
22 entries across 22 versions & 1 rubygems