Sha256: dedebdcbba2892a0e7adaddaee3b0c1f2c93f4798768eb44295878de874e94e5
Contents?: true
Size: 671 Bytes
Versions: 12
Compression:
Stored size: 671 Bytes
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 } @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
12 entries across 12 versions & 1 rubygems