Sha256: 65917bcf162cb4f1610d89991e5cd13ebcba7018970d8f89cac037c09fd7f324
Contents?: true
Size: 671 Bytes
Versions: 4
Compression:
Stored size: 671 Bytes
Contents
require 'pathname' module Canzea # Configuration defaults @config = { :log_level => "verbose", :catalog_location => "#{Dir.pwd}/.ecosystem-catalog", :catalog_git => "https://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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
canzea-0.1.18 | lib/canzea/config.rb |
canzea-0.1.17 | lib/canzea/config.rb |
canzea-0.1.16 | lib/canzea/config.rb |
canzea-0.1.15 | lib/canzea/config.rb |