Sha256: d43be238358e11da54bda8c28b34ef8d6f54f6ad64cd1635b7d42f05836713d5
Contents?: true
Size: 387 Bytes
Versions: 1
Compression:
Stored size: 387 Bytes
Contents
require 'yaml' module Rodakase class Config extend Dry::Configurable def self.load(root, env) path = root.join('config').join('application.yml') return unless File.exist?(path) yaml = YAML.load_file(path) yaml.fetch(env.to_s).each do |key, value| setting key.downcase.to_sym, ENV.fetch(key, value) end config end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rodakase-0.0.1 | lib/rodakase/config.rb |