Sha256: f092da721501191105acb240c0fd1fbefb167327564d1894b2d7cf7178117b45

Contents?: true

Size: 542 Bytes

Versions: 240

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

240 entries across 240 versions & 1 rubygems

Version Path
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
katello-4.7.1 app/lib/actions/candlepin/product/delete_pools.rb
katello-4.6.2.1 app/lib/actions/candlepin/product/delete_pools.rb
katello-4.6.2 app/lib/actions/candlepin/product/delete_pools.rb
katello-4.7.0 app/lib/actions/candlepin/product/delete_pools.rb
katello-4.6.1 app/lib/actions/candlepin/product/delete_pools.rb
katello-4.7.0.rc2 app/lib/actions/candlepin/product/delete_pools.rb
katello-4.7.0.rc1 app/lib/actions/candlepin/product/delete_pools.rb
katello-4.4.2.2 app/lib/actions/candlepin/product/delete_pools.rb
katello-4.4.2.1 app/lib/actions/candlepin/product/delete_pools.rb
katello-4.4.2 app/lib/actions/candlepin/product/delete_pools.rb
katello-4.5.1 app/lib/actions/candlepin/product/delete_pools.rb
katello-4.6.0 app/lib/actions/candlepin/product/delete_pools.rb
katello-4.6.0.rc2 app/lib/actions/candlepin/product/delete_pools.rb
katello-4.6.0.rc1 app/lib/actions/candlepin/product/delete_pools.rb
katello-4.5.0 app/lib/actions/candlepin/product/delete_pools.rb
katello-4.5.0.rc2 app/lib/actions/candlepin/product/delete_pools.rb
katello-4.4.1 app/lib/actions/candlepin/product/delete_pools.rb