Sha256: 19e357d45d67a520319bc672360f7a630952d67da60ad415f1157e9e5ee7a335

Contents?: true

Size: 1.15 KB

Versions: 70

Compression:

Stored size: 1.15 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",
              :track_changes_in_git => false
            }
  @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

70 entries across 70 versions & 1 rubygems

Version Path
canzea-0.1.180 lib/canzea/config.rb
canzea-0.1.179 lib/canzea/config.rb
canzea-0.1.178 lib/canzea/config.rb
canzea-0.1.177 lib/canzea/config.rb
canzea-0.1.176 lib/canzea/config.rb
canzea-0.1.175 lib/canzea/config.rb
canzea-0.1.174 lib/canzea/config.rb
canzea-0.1.173 lib/canzea/config.rb
canzea-0.1.172 lib/canzea/config.rb
canzea-0.1.171 lib/canzea/config.rb
canzea-0.1.170 lib/canzea/config.rb
canzea-0.1.169 lib/canzea/config.rb
canzea-0.1.167 lib/canzea/config.rb
canzea-0.1.166 lib/canzea/config.rb
canzea-0.1.165 lib/canzea/config.rb
canzea-0.1.160 lib/canzea/config.rb
canzea-0.1.159 lib/canzea/config.rb
canzea-0.1.158 lib/canzea/config.rb
canzea-0.1.157 lib/canzea/config.rb
canzea-0.1.156 lib/canzea/config.rb