Sha256: ce216bb336d51a38aade33df169429d80b8cb3ef3fac6a667afd522530d450c5
Contents?: true
Size: 1.08 KB
Versions: 11
Compression:
Stored size: 1.08 KB
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? # Container push repositories must be deleted through the distribution return if repository.root.is_container_push # 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
11 entries across 11 versions & 1 rubygems