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

Version Path
katello-4.10.0 app/lib/actions/candlepin/product/delete_pools.rb
katello-4.9.2 app/lib/actions/candlepin/product/delete_pools.rb
katello-4.10.0.rc2 app/lib/actions/candlepin/product/delete_pools.rb
katello-4.10.0.rc1 app/lib/actions/candlepin/product/delete_pools.rb
katello-4.8.4 app/lib/actions/candlepin/product/delete_pools.rb
katello-4.9.1 app/lib/actions/candlepin/product/delete_pools.rb
katello-4.8.3 app/lib/actions/candlepin/product/delete_pools.rb
katello-4.9.0 app/lib/actions/candlepin/product/delete_pools.rb
katello-4.7.6 app/lib/actions/candlepin/product/delete_pools.rb
katello-4.8.2 app/lib/actions/candlepin/product/delete_pools.rb
katello-4.9.0.rc2 app/lib/actions/candlepin/product/delete_pools.rb
katello-4.9.0.rc1 app/lib/actions/candlepin/product/delete_pools.rb
katello-4.8.1 app/lib/actions/candlepin/product/delete_pools.rb
katello-4.7.5 app/lib/actions/candlepin/product/delete_pools.rb
katello-4.8.0 app/lib/actions/candlepin/product/delete_pools.rb
katello-4.8.0.rc2 app/lib/actions/candlepin/product/delete_pools.rb
katello-4.7.4 app/lib/actions/candlepin/product/delete_pools.rb
katello-4.8.0.rc1 app/lib/actions/candlepin/product/delete_pools.rb
katello-4.7.3 app/lib/actions/candlepin/product/delete_pools.rb
katello-4.7.2 app/lib/actions/candlepin/product/delete_pools.rb