Class: Porkadot::Configs::Certs::FrontProxy

Inherits:
Object
  • Object
show all
Includes:
Porkadot::Configs::CertsUtils
Defined in:
lib/porkadot/configs/certs/front_proxy.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Porkadot::Configs::CertsUtils

#certs_root_dir, #ipaddr?

Constructor Details

#initialize(config) ⇒ FrontProxy

Returns a new instance of FrontProxy.



8
9
10
11
# File 'lib/porkadot/configs/certs/front_proxy.rb', line 8

def initialize config
  @config = config
  @logger = config.logger
end

Instance Attribute Details

#configObject (readonly)

Returns the value of attribute config.



5
6
7
# File 'lib/porkadot/configs/certs/front_proxy.rb', line 5

def config
  @config
end

#loggerObject (readonly)

Returns the value of attribute logger.



6
7
8
# File 'lib/porkadot/configs/certs/front_proxy.rb', line 6

def logger
  @logger
end

Instance Method Details

#ca_cert_pathObject



21
22
23
# File 'lib/porkadot/configs/certs/front_proxy.rb', line 21

def ca_cert_path
  File.join(self.target_dir, 'front-proxy-ca.crt')
end

#ca_key_pathObject



17
18
19
# File 'lib/porkadot/configs/certs/front_proxy.rb', line 17

def ca_key_path
  File.join(self.target_dir, 'front-proxy-ca.key')
end

#client_cert_pathObject



29
30
31
# File 'lib/porkadot/configs/certs/front_proxy.rb', line 29

def client_cert_path
  File.join(self.target_dir, 'front-proxy-client.crt')
end

#client_key_pathObject



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

def client_key_path
  File.join(self.target_dir, 'front-proxy-client.key')
end

#target_dirObject



13
14
15
# File 'lib/porkadot/configs/certs/front_proxy.rb', line 13

def target_dir
  File.join(self.certs_root_dir, 'kubernetes')
end