Module: Porkadot::Utils
- Included in:
- Cmd::Cli, Cmd::Etcd::Cli, Cmd::Install::Bootstrap::Cli, Cmd::Install::Cli, Cmd::Install::Kubernetes::Cli, Cmd::Render::Certs::Cli, Cmd::Render::Cli
- Defined in:
- lib/porkadot/utils.rb
Instance Method Summary collapse
Instance Method Details
#config ⇒ Object
12 13 14 15 16 17 18 19 |
# File 'lib/porkadot/utils.rb', line 12 def config unless defined?(@config) opts = .dup opts = opts.merge() if @config = Porkadot::Config.new([:config]) end @config end |
#logger ⇒ Object
21 22 23 |
# File 'lib/porkadot/utils.rb', line 21 def logger self.config.logger end |