Module: Porkadot::Configs::CertsUtils
- Included in:
- Certs, Porkadot::Configs::Certs::Etcd, Porkadot::Configs::Certs::FrontProxy, Porkadot::Configs::Certs::Kubernetes, EtcdNode
- Defined in:
- lib/porkadot/configs/certs.rb
Instance Method Summary collapse
Instance Method Details
#certs_root_dir ⇒ Object
7 8 9 |
# File 'lib/porkadot/configs/certs.rb', line 7 def certs_root_dir File.join(self.config.secrets_root_dir, 'certs') end |
#ipaddr?(addr) ⇒ Boolean
11 12 13 14 15 16 17 18 19 |
# File 'lib/porkadot/configs/certs.rb', line 11 def ipaddr?(addr) if addr.nil? return false end IPAddr.new(addr) return true rescue IPAddr::InvalidAddressError return false end |