Class: Porkadot::Configs::Certs::FrontProxy
Instance Attribute Summary collapse
Instance Method Summary
collapse
#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
#config ⇒ Object
Returns the value of attribute config.
5
6
7
|
# File 'lib/porkadot/configs/certs/front_proxy.rb', line 5
def config
@config
end
|
#logger ⇒ Object
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_path ⇒ Object
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_path ⇒ Object
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_path ⇒ Object
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_path ⇒ Object
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_dir ⇒ Object
13
14
15
|
# File 'lib/porkadot/configs/certs/front_proxy.rb', line 13
def target_dir
File.join(self.certs_root_dir, 'kubernetes')
end
|