Sha256: 8a0a7db365fb6ca3359c059ad7713ff71a6a88aca681095bf5797efee30861dd

Contents?: true

Size: 1.03 KB

Versions: 32

Compression:

Stored size: 1.03 KB

Contents

require 'pathname'

module Canzea

  # Configuration defaults
  @config = {
              :log_level => "verbose",
              :catalog_location => "#{Dir.home}/.ecosystem-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

32 entries across 32 versions & 1 rubygems

Version Path
canzea-0.1.74 lib/canzea/config.rb
canzea-0.1.73 lib/canzea/config.rb
canzea-0.1.72 lib/canzea/config.rb
canzea-0.1.71 lib/canzea/config.rb
canzea-0.1.70 lib/canzea/config.rb
canzea-0.1.68 lib/canzea/config.rb
canzea-0.1.67 lib/canzea/config.rb
canzea-0.1.66 lib/canzea/config.rb
canzea-0.1.64 lib/canzea/config.rb
canzea-0.1.63 lib/canzea/config.rb
canzea-0.1.62 lib/canzea/config.rb
canzea-0.1.61 lib/canzea/config.rb
canzea-0.1.60 lib/canzea/config.rb
canzea-0.1.59 lib/canzea/config.rb
canzea-0.1.58 lib/canzea/config.rb
canzea-0.1.57 lib/canzea/config.rb
canzea-0.1.56 lib/canzea/config.rb
canzea-0.1.55 lib/canzea/config.rb
canzea-0.1.54 lib/canzea/config.rb
canzea-0.1.53 lib/canzea/config.rb