Sha256: 9aaed89ca8ffa29e92038fb231cf541f44e527f19ecac9e4b7608f9e6ce755dd
Contents?: true
Size: 470 Bytes
Versions: 1
Compression:
Stored size: 470 Bytes
Contents
module Katello module Candlepin class PoolService def self.local_to_upstream_ids(local_pool_ids) pools = Katello::Pool.find(local_pool_ids) id_map = Hash.new { |hash, key| hash[key] = [] } pools.each do |pool| fail 'No upstream pool ID was found for Katello::Pool with ID: %s' % pool.id unless pool.upstream_pool_id id_map[pool.upstream_pool_id] << pool.id end id_map end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
katello-3.7.0.rc1 | app/services/katello/candlepin/pool_service.rb |