Class: Porkadot::Configs::Certs

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from CertsUtils

#certs_root_dir, #ipaddr?

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

#configObject (readonly)

Returns the value of attribute config.



25
26
27
# File 'lib/porkadot/configs/certs.rb', line 25

def config
  @config
end

#loggerObject (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

#etcdObject



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_proxyObject



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

#kubernetesObject



38
39
40
41
# File 'lib/porkadot/configs/certs.rb', line 38

def kubernetes
  @kubernetes ||= ::Porkadot::Configs::Certs::Kubernetes.new(config)
  return @kubernetes
end