Sha256: 6b7f2c1d71163fecd910fcb43f84ba0428c4107d7d680d182f016112d1ecec5e

Contents?: true

Size: 667 Bytes

Versions: 1

Compression:

Stored size: 667 Bytes

Contents

require 'pathname'

module Canzea

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