Sha256: f092da721501191105acb240c0fd1fbefb167327564d1894b2d7cf7178117b45
Contents?: true
Size: 542 Bytes
Versions: 237
Compression:
Stored size: 542 Bytes
Contents
module Actions module Candlepin module Product class DeletePools < Candlepin::Abstract input_format do param :organization_label param :cp_id end def run output[:response] = ::Katello::Resources::Candlepin::Product.pools(input[:organization_label], input[:cp_id]).each do |pool| ::Katello::Pool.where(:cp_id => pool['id']).each(&:destroy) ::Katello::Resources::Candlepin::Pool.destroy(pool['id']) end end end end end end
Version data entries
237 entries across 237 versions & 1 rubygems