Module: Glue::Candlepin::Owner::InstanceMethods
- Defined in:
- app/models/katello/glue/candlepin/owner.rb
Instance Method Summary collapse
- #generate_debug_cert ⇒ Object
- #imports ⇒ Object
- #load_debug_cert ⇒ Object
- #owner_details ⇒ Object
- #owner_info ⇒ Object
- #pools(consumer_uuid = nil) ⇒ Object
- #service_level ⇒ Object
- #service_level=(level) ⇒ Object
Instance Method Details
#generate_debug_cert ⇒ Object
43 44 45 |
# File 'app/models/katello/glue/candlepin/owner.rb', line 43 def generate_debug_cert Resources::Candlepin::Owner.generate_ueber_cert(label) end |
#imports ⇒ Object
53 54 55 |
# File 'app/models/katello/glue/candlepin/owner.rb', line 53 def imports Resources::Candlepin::Owner.imports(self.label) end |
#load_debug_cert ⇒ Object
47 48 49 50 51 |
# File 'app/models/katello/glue/candlepin/owner.rb', line 47 def load_debug_cert return Resources::Candlepin::Owner.get_ueber_cert(label) rescue RestClient::ResourceNotFound return generate_debug_cert end |
#owner_details ⇒ Object
23 24 25 |
# File 'app/models/katello/glue/candlepin/owner.rb', line 23 def owner_details Resources::Candlepin::Owner.find self.label end |
#owner_info ⇒ Object
19 20 21 |
# File 'app/models/katello/glue/candlepin/owner.rb', line 19 def owner_info Glue::Candlepin::OwnerInfo.new(self) end |
#pools(consumer_uuid = nil) ⇒ Object
35 36 37 38 39 40 41 |
# File 'app/models/katello/glue/candlepin/owner.rb', line 35 def pools(consumer_uuid = nil) if consumer_uuid Resources::Candlepin::Owner.pools self.label, :consumer => consumer_uuid else Resources::Candlepin::Owner.pools self.label end end |
#service_level ⇒ Object
27 28 29 |
# File 'app/models/katello/glue/candlepin/owner.rb', line 27 def service_level self.owner_details['defaultServiceLevel'] end |