Sha256: e7094513840dd1b7364e07d8d1d0486cf98a131d7012c0a59771a66a70c5ca8e
Contents?: true
Size: 1.22 KB
Versions: 1
Compression:
Stored size: 1.22 KB
Contents
require 'pathname' module CanzeaESCli # 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", :track_changes_in_git => false, :canzea_platform_uri => "https://canzea.com/console-app" } @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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
escli-1.0.1 | lib/canzea/config.rb |