Sha256: 50dba59cbe8c52908fa021b12542e147c8297e4ef1e80ca0203b195d3675b197
Contents?: true
Size: 953 Bytes
Versions: 134
Compression:
Stored size: 953 Bytes
Contents
module Actions module Pulp3 module Orchestration module Repository class Delete < Pulp3::Abstract def plan(repository, smart_proxy) sequence do plan_action(Actions::Pulp3::Repository::DeleteRemote, repository.id, smart_proxy) if repository.remote_href plan_action(Actions::Pulp3::Repository::DeleteDistributions, repository.id, smart_proxy) if repository.content_view.default? #we're deleting the library instance, so just delete the whole pulp3 repo plan_action(Actions::Pulp3::Repository::Delete, repository.id, smart_proxy) elsif repository.environment.nil? #we're deleting the archived instance, so delete the version plan_action(Actions::Pulp3::Repository::DeleteVersion, repository, smart_proxy) end end end end end end end end
Version data entries
134 entries across 134 versions & 1 rubygems