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.15.0.rc2 app/lib/actions/candlepin/product/delete_pools.rb
katello-4.15.0.rc1 app/lib/actions/candlepin/product/delete_pools.rb
katello-4.14.1 app/lib/actions/candlepin/product/delete_pools.rb
katello-4.14.0 app/lib/actions/candlepin/product/delete_pools.rb
katello-4.14.0.rc3 app/lib/actions/candlepin/product/delete_pools.rb
katello-4.14.0.rc2 app/lib/actions/candlepin/product/delete_pools.rb
katello-4.14.0.rc1.1 app/lib/actions/candlepin/product/delete_pools.rb
katello-4.14.0.rc1 app/lib/actions/candlepin/product/delete_pools.rb
katello-4.13.1 app/lib/actions/candlepin/product/delete_pools.rb
katello-4.13.0 app/lib/actions/candlepin/product/delete_pools.rb
katello-4.12.1 app/lib/actions/candlepin/product/delete_pools.rb
katello-4.13.0.rc1 app/lib/actions/candlepin/product/delete_pools.rb
katello-4.12.0 app/lib/actions/candlepin/product/delete_pools.rb
katello-4.12.0.rc3 app/lib/actions/candlepin/product/delete_pools.rb
katello-4.12.0.rc2 app/lib/actions/candlepin/product/delete_pools.rb
katello-4.12.0.rc1 app/lib/actions/candlepin/product/delete_pools.rb
katello-4.11.1 app/lib/actions/candlepin/product/delete_pools.rb
katello-4.11.0 app/lib/actions/candlepin/product/delete_pools.rb
katello-4.11.0.rc2 app/lib/actions/candlepin/product/delete_pools.rb
katello-4.11.0.rc1 app/lib/actions/candlepin/product/delete_pools.rb