Sha256: 301537cee5d19f46013568abeb39d6e0a77ef64a0c97bf18f5cca6028662d5d0

Contents?: true

Size: 477 Bytes

Versions: 1

Compression:

Stored size: 477 Bytes

Contents

SYS_ENV = 'development' unless defined? SYS_ENV

unless defined? APP_CONFIG
  if File.exist? './config/config.yml'
    APP_CONFIG = YAML.load_file('./config/config.yml')[SYS_ENV].deep_symbolize_keys
  else
    APP_CONFIG = {}
    puts 'WARNING! Missing config file. Use rake system:config to create default config file.' if DCA.used?
  end
end

unless defined? AREAS_CONFIG
  if APP_CONFIG[:areas]
    AREAS_CONFIG = APP_CONFIG[:areas]
  else
    AREAS_CONFIG = {}
  end
end


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dca-0.1.0 lib/dca/config.rb