Sha256: f61c71321efb7db959765ad80cd4c4a025bf07667ea4b72722feb9c7be3a0b1a
Contents?: true
Size: 1.1 KB
Versions: 17
Compression:
Stored size: 1.1 KB
Contents
require 'pathname' module Canzea # Configuration defaults @config = { :log_level => "verbose", :config_location => "#{Dir.home}/.ecosystem-catalog", :catalog_location => "#{Dir.home}/.ecosystem-catalog/catalog", :catalog_git => "https://gitlab.com/canzea/ecosystem-catalog.git", :catalog_branch => "develop", :git_repo => "/opt/cloud-profile", :logging_root => Dir.home, :pwd => Dir.pwd, :consul_tls => false, :consul_tls_ca_file => "/etc/consul.d/ssl/ca.cert", :consul_tls_cert_file => "/etc/consul.d/ssl/consul.cert", :consul_tls_key_file => "/etc/consul.d/ssl/consul.key", :vault_tls_cert_file => "/etc/consul.d/ssl/vault.cert", :vault_tls_key_file => "/etc/consul.d/ssl/vault.key" } @valid_config_keys = @config.keys # Configure through hash def self.configure(opts = {}) opts.each {|k,v| @config[k.to_sym] = v if @valid_config_keys.include? k.to_sym} end def self.config @config end end
Version data entries
17 entries across 17 versions & 1 rubygems