Class: Katello::Resources::Candlepin::CandlepinPing
- Inherits:
-
CandlepinResource
- Object
- HttpResource
- CandlepinResource
- Katello::Resources::Candlepin::CandlepinPing
- Defined in:
- app/lib/katello/resources/candlepin.rb
Instance Attribute Summary
Attributes inherited from HttpResource
Class Method Summary collapse
Methods inherited from CandlepinResource
default_headers, logger, name_to_key
Methods inherited from HttpResource
#[], #[]=, create_thing, delete, get, hash_to_query, #initialize, join_path, logger, post, print_debug_info, process_response, put, raise_rest_client_exception, rest_client, url_encode
Constructor Details
This class inherits a constructor from Katello::HttpResource
Class Method Details
.distributor_versions ⇒ Object
85 86 87 88 |
# File 'app/lib/katello/resources/candlepin.rb', line 85 def distributor_versions response = get("/candlepin/distributor_versions").body JSON.parse(response) end |
.ping ⇒ Object
80 81 82 83 |
# File 'app/lib/katello/resources/candlepin.rb', line 80 def ping response = get('/candlepin/status').body JSON.parse(response).with_indifferent_access end |