Sha256: 44fb328aa9cab41ad05549e37b4cc44a4eac8a656f2a3a35b306fa03186089e3

Contents?: true

Size: 346 Bytes

Versions: 38

Compression:

Stored size: 346 Bytes

Contents

module Actions
  module Candlepin
    module Product
      class DeleteUnused < Candlepin::Abstract
        def plan(organization)
          organization.products.each do |product|
            plan_action(Candlepin::Product::Destroy, cp_id: product.cp_id) unless product.used_by_another_org?
          end
        end
      end
    end
  end
end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
katello-3.3.2 app/lib/actions/candlepin/product/delete_unused.rb
katello-3.3.1.1 app/lib/actions/candlepin/product/delete_unused.rb
katello-3.3.1 app/lib/actions/candlepin/product/delete_unused.rb
katello-3.3.0.1 app/lib/actions/candlepin/product/delete_unused.rb
katello-3.3.0 app/lib/actions/candlepin/product/delete_unused.rb
katello-3.3.0.rc2 app/lib/actions/candlepin/product/delete_unused.rb
katello-3.3.0.rc1.1 app/lib/actions/candlepin/product/delete_unused.rb
katello-3.3.0.rc1 app/lib/actions/candlepin/product/delete_unused.rb
katello-3.2.1.1 app/lib/actions/candlepin/product/delete_unused.rb
katello-3.2.1 app/lib/actions/candlepin/product/delete_unused.rb
katello-3.2.0 app/lib/actions/candlepin/product/delete_unused.rb
katello-3.2.0.rc3 app/lib/actions/candlepin/product/delete_unused.rb
katello-3.2.0.rc2 app/lib/actions/candlepin/product/delete_unused.rb
katello-3.2.0.rc1.1 app/lib/actions/candlepin/product/delete_unused.rb
katello-3.2.0.rc1 app/lib/actions/candlepin/product/delete_unused.rb
katello-3.1.0.1 app/lib/actions/candlepin/product/delete_unused.rb
katello-3.1.0 app/lib/actions/candlepin/product/delete_unused.rb
katello-3.1.0.rc2.1 app/lib/actions/candlepin/product/delete_unused.rb
katello-3.0.2 app/lib/actions/candlepin/product/delete_unused.rb
katello-2.4.5 app/lib/actions/candlepin/product/delete_unused.rb