Sha256: 290d716f46f2c39f9d1ef4284124267aef7ce5b6ed80a324a2f1d1d1038422cc
Contents?: true
Size: 750 Bytes
Versions: 22
Compression:
Stored size: 750 Bytes
Contents
module Actions module Katello module Product class ContentDestroy < Actions::Base def plan(repository) if !repository.product.provider.redhat_provider? && repository.other_repos_with_same_product_and_content.empty? sequence do plan_action(Candlepin::Product::ContentRemove, product_id: repository.product.cp_id, content_id: repository.content_id) if repository.other_repos_with_same_content.empty? plan_action(Candlepin::Product::ContentDestroy, content_id: repository.content_id) end end end end end end end end
Version data entries
22 entries across 22 versions & 1 rubygems