Sha256: 37e89bcc187bc6983b3d540e3aedd6ed22e1deda736ab9e00ee4bbfea1315f59
Contents?: true
Size: 432 Bytes
Versions: 6
Compression:
Stored size: 432 Bytes
Contents
module GeoWorks module GeoServer def config @config ||= config_yaml.with_indifferent_access end private def config_yaml file = File.join(GeoWorks.root, 'config', 'geoserver.yml') file = File.join(Rails.root, 'config', 'geoserver.yml') unless File.exist? file YAML.load(ERB.new(File.read(file)).result)['geoserver'] end module_function :config, :config_yaml end end
Version data entries
6 entries across 6 versions & 1 rubygems