Sha256: b68f89c612906a20d480eaa023a1c81050a2015c68f4d99205b713c0f9e6a581
Contents?: true
Size: 400 Bytes
Versions: 1
Compression:
Stored size: 400 Bytes
Contents
require 'ostruct' class Configuration < OpenStruct def initialize(*envs) shared_config = YAML.load_file("config.yml") config = shared_config envs.each do |env| env_config_file = "envs/#{env}/config.yml" config = File.exists?(env_config_file) ? YAML.load_file(env_config_file).merge(config) : config end super(config) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
solokit-0.0.1 | lib/configuration.rb |