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.1.0.rc1 app/lib/actions/candlepin/product/delete_unused.rb
katello-3.0.1 app/lib/actions/candlepin/product/delete_unused.rb
katello-2.4.4 app/lib/actions/candlepin/product/delete_unused.rb
katello-3.0.0 app/lib/actions/candlepin/product/delete_unused.rb
katello-2.4.3 app/lib/actions/candlepin/product/delete_unused.rb
katello-3.0.0.rc7 app/lib/actions/candlepin/product/delete_unused.rb
katello-3.0.0.rc5 app/lib/actions/candlepin/product/delete_unused.rb
katello-2.4.2 app/lib/actions/candlepin/product/delete_unused.rb
katello-3.0.0.rc4 app/lib/actions/candlepin/product/delete_unused.rb
katello-3.0.0.rc3 app/lib/actions/candlepin/product/delete_unused.rb
katello-3.0.0.rc2 app/lib/actions/candlepin/product/delete_unused.rb
katello-3.0.0.rc1 app/lib/actions/candlepin/product/delete_unused.rb
katello-2.4.1 app/lib/actions/candlepin/product/delete_unused.rb
katello-2.4.0 app/lib/actions/candlepin/product/delete_unused.rb
katello-2.4.0.rc3 app/lib/actions/candlepin/product/delete_unused.rb
katello-2.4.0.rc2 app/lib/actions/candlepin/product/delete_unused.rb
katello-2.4.0.rc1 app/lib/actions/candlepin/product/delete_unused.rb
katello-2.2.2 app/lib/actions/candlepin/product/delete_unused.rb