Class: Cert::RhsmClient
- Inherits:
-
Object
- Object
- Cert::RhsmClient
- Defined in:
- lib/smart_proxy_container_gateway/rhsm_client.rb
Instance Attribute Summary collapse
-
#cert ⇒ Object
Returns the value of attribute cert.
Instance Method Summary collapse
-
#initialize(cert) ⇒ RhsmClient
constructor
A new instance of RhsmClient.
- #uuid ⇒ Object
Constructor Details
#initialize(cert) ⇒ RhsmClient
Returns a new instance of RhsmClient.
8 9 10 |
# File 'lib/smart_proxy_container_gateway/rhsm_client.rb', line 8 def initialize(cert) self.cert = extract(cert) end |
Instance Attribute Details
#cert ⇒ Object
Returns the value of attribute cert.
6 7 8 |
# File 'lib/smart_proxy_container_gateway/rhsm_client.rb', line 6 def cert @cert end |
Instance Method Details
#uuid ⇒ Object
12 13 14 |
# File 'lib/smart_proxy_container_gateway/rhsm_client.rb', line 12 def uuid @uuid ||= @cert.subject.to_a.find { |entry| entry[0] == 'CN' }&.[](1) end |