Module: Glue::Candlepin::Pool::ClassMethods

Defined in:
app/models/katello/glue/candlepin/pool.rb

Instance Method Summary collapse

Instance Method Details

#candlepin_data(cp_id) ⇒ Object



26
27
28
# File 'app/models/katello/glue/candlepin/pool.rb', line 26

def candlepin_data(cp_id)
  Katello::Resources::Candlepin::Pool.find(cp_id)
end

#get_for_owner(organization) ⇒ Object



30
31
32
# File 'app/models/katello/glue/candlepin/pool.rb', line 30

def get_for_owner(organization)
  Katello::Resources::Candlepin::Pool.get_for_owner(organization, true)
end

#import_pool(cp_pool_id) ⇒ Object



34
35
36
37
# File 'app/models/katello/glue/candlepin/pool.rb', line 34

def import_pool(cp_pool_id)
  pool = Katello::Pool.where(:cp_id => cp_pool_id).first_or_create
  pool.import_data
end