Sha256: 0272ef437bcda0a68219a1b12c68b586f1d6b5cdff23404f2645f1765a587618
Contents?: true
Size: 641 Bytes
Versions: 4
Compression:
Stored size: 641 Bytes
Contents
module Actions module Pulp3 module OrphanCleanup class DeleteOrphanRepositoryVersions < Pulp3::AbstractAsyncTask def plan(smart_proxy) plan_self(:smart_proxy_id => smart_proxy.id) end def run smart_proxy = SmartProxy.find(input[:smart_proxy_id]) if smart_proxy.pulp_mirror? output[:pulp_tasks] = ::Katello::Pulp3::Repository.delete_orphan_repository_versions_for_mirror(smart_proxy) else output[:pulp_tasks] = ::Katello::Pulp3::Repository.delete_orphan_repository_versions(smart_proxy) end end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems