Class: Katello::Resources::Candlepin::CandlepinPing

Inherits:
CandlepinResource show all
Defined in:
app/lib/katello/resources/candlepin/candlepin_ping.rb

Constant Summary

Constants inherited from HttpResource

HttpResource::REQUEST_MAP

Instance Attribute Summary

Attributes inherited from HttpResource

#json

Class Method Summary collapse

Methods inherited from CandlepinResource

default_headers, fetch_paged, included_list, logger, name_to_key, process_response, raise_rest_client_exception

Methods inherited from HttpResource

#[], #[]=, hash_to_query, #initialize, issue_request, join_path, logger, process_response, raise_rest_client_exception, rest_client

Methods included from Concerns::FilterSensitiveData

#filter_sensitive_data

Constructor Details

This class inherits a constructor from Katello::HttpResource

Class Method Details

.distributor_versionsObject



11
12
13
14
# File 'app/lib/katello/resources/candlepin/candlepin_ping.rb', line 11

def distributor_versions
  response = get("/candlepin/distributor_versions").body
  JSON.parse(response)
end

.pingObject



6
7
8
9
# File 'app/lib/katello/resources/candlepin/candlepin_ping.rb', line 6

def ping
  response = get('/candlepin/status').body
  JSON.parse(response).with_indifferent_access
end