Sha256: a63993c382c74816cc8effda8773c36c45eca0e0a4f1ec3bf0de7818f7ac6f3d

Contents?: true

Size: 521 Bytes

Versions: 1

Compression:

Stored size: 521 Bytes

Contents

SYS_ENV = ENV['SYS_ENV'] if ENV['SYS_ENV']

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.1 lib/dca/config.rb