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