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

Version Path
canzea-0.1.35 lib/canzea/config.rb
canzea-0.1.34 lib/canzea/config.rb
canzea-0.1.33 lib/canzea/config.rb
canzea-0.1.32 lib/canzea/config.rb
canzea-0.1.31 lib/canzea/config.rb
canzea-0.1.30 lib/canzea/config.rb
canzea-0.1.29 lib/canzea/config.rb
canzea-0.1.28 lib/canzea/config.rb
canzea-0.1.27 lib/canzea/config.rb
canzea-0.1.26 lib/canzea/config.rb
canzea-0.1.25 lib/canzea/config.rb
canzea-0.1.24 lib/canzea/config.rb