Sha256: f6b8cadca11b08fc97322d01429de9e4a09e6a649179cfcd9d84760f84601177

Contents?: true

Size: 642 Bytes

Versions: 5

Compression:

Stored size: 642 Bytes

Contents

module Canzea

  # Configuration defaults
  @config = {
              :log_level => "verbose",
              :catalog_location => "/opt/canzea-catalog",
              :catalog_git => "git@gitlab.com:canzea/ecosystem-catalog.git",
              :catalog_branch => "develop",
              :git_repo => "/opt/canzea-profile",
              :logging_root => Dir.home(),
              :pwd => Dir.home()
            }
  @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

5 entries across 5 versions & 1 rubygems

Version Path
canzea-0.1.13 lib/canzea/config.rb
canzea-0.1.12 lib/canzea/config.rb
canzea-0.1.11 lib/canzea/config.rb
canzea-0.1.10 lib/canzea/config.rb
canzea-0.1.9 lib/canzea/config.rb