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

Version Path
canzea-0.1.94 lib/canzea/config.rb
canzea-0.1.93 lib/canzea/config.rb
canzea-0.1.91 lib/canzea/config.rb
canzea-0.1.90 lib/canzea/config.rb
canzea-0.1.89 lib/canzea/config.rb
canzea-0.1.88 lib/canzea/config.rb
canzea-0.1.87 lib/canzea/config.rb
canzea-0.1.86 lib/canzea/config.rb
canzea-0.1.85 lib/canzea/config.rb
canzea-0.1.84 lib/canzea/config.rb
canzea-0.1.83 lib/canzea/config.rb
canzea-0.1.82 lib/canzea/config.rb
canzea-0.1.81 lib/canzea/config.rb
canzea-0.1.80 lib/canzea/config.rb
canzea-0.1.78 lib/canzea/config.rb
canzea-0.1.77 lib/canzea/config.rb
canzea-0.1.76 lib/canzea/config.rb