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

Version Path
katello-3.1.0.1 app/lib/actions/katello/product/content_destroy.rb
katello-3.1.0 app/lib/actions/katello/product/content_destroy.rb
katello-3.1.0.rc2.1 app/lib/actions/katello/product/content_destroy.rb
katello-3.0.2 app/lib/actions/katello/product/content_destroy.rb
katello-2.4.5 app/lib/actions/katello/product/content_destroy.rb
katello-3.1.0.rc1 app/lib/actions/katello/product/content_destroy.rb
katello-3.0.1 app/lib/actions/katello/product/content_destroy.rb
katello-2.4.4 app/lib/actions/katello/product/content_destroy.rb
katello-3.0.0 app/lib/actions/katello/product/content_destroy.rb
katello-2.4.3 app/lib/actions/katello/product/content_destroy.rb
katello-3.0.0.rc7 app/lib/actions/katello/product/content_destroy.rb
katello-3.0.0.rc5 app/lib/actions/katello/product/content_destroy.rb
katello-2.4.2 app/lib/actions/katello/product/content_destroy.rb
katello-3.0.0.rc4 app/lib/actions/katello/product/content_destroy.rb
katello-3.0.0.rc3 app/lib/actions/katello/product/content_destroy.rb
katello-3.0.0.rc2 app/lib/actions/katello/product/content_destroy.rb
katello-3.0.0.rc1 app/lib/actions/katello/product/content_destroy.rb
katello-2.4.1 app/lib/actions/katello/product/content_destroy.rb
katello-2.4.0 app/lib/actions/katello/product/content_destroy.rb
katello-2.4.0.rc3 app/lib/actions/katello/product/content_destroy.rb