Class: Porkadot::Configs::Certs
- Inherits:
-
Object
- Object
- Porkadot::Configs::Certs
- Includes:
- CertsUtils
- Defined in:
- lib/porkadot/configs/certs.rb,
lib/porkadot/configs/certs/k8s.rb,
lib/porkadot/configs/certs/etcd.rb,
lib/porkadot/configs/certs/front_proxy.rb
Defined Under Namespace
Classes: Etcd, FrontProxy, Kubernetes
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
-
#logger ⇒ Object
readonly
Returns the value of attribute logger.
Instance Method Summary collapse
- #etcd ⇒ Object
- #front_proxy ⇒ Object
-
#initialize(config) ⇒ Certs
constructor
A new instance of Certs.
- #kubernetes ⇒ Object
Methods included from CertsUtils
Constructor Details
#initialize(config) ⇒ Certs
Returns a new instance of Certs.
28 29 30 31 |
# File 'lib/porkadot/configs/certs.rb', line 28 def initialize config @config = config @logger = config.logger end |
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
25 26 27 |
# File 'lib/porkadot/configs/certs.rb', line 25 def config @config end |
#logger ⇒ Object (readonly)
Returns the value of attribute logger.
26 27 28 |
# File 'lib/porkadot/configs/certs.rb', line 26 def logger @logger end |
Instance Method Details
#etcd ⇒ Object
33 34 35 36 |
# File 'lib/porkadot/configs/certs.rb', line 33 def etcd @etcd ||= ::Porkadot::Configs::Certs::Etcd.new(config) return @etcd end |
#front_proxy ⇒ Object
43 44 45 46 |
# File 'lib/porkadot/configs/certs.rb', line 43 def front_proxy @front_proxy ||= ::Porkadot::Configs::Certs::FrontProxy.new(config) return @front_proxy end |
#kubernetes ⇒ Object
38 39 40 41 |
# File 'lib/porkadot/configs/certs.rb', line 38 def kubernetes @kubernetes ||= ::Porkadot::Configs::Certs::Kubernetes.new(config) return @kubernetes end |