settingslogic icon indicating copy to clipboard operation
settingslogic copied to clipboard

Add Stacked Configuration Files Feature

Open moofish32 opened this issue 12 years ago • 1 comments

We really liked the simplicity of this gem, but for our use we need the ability to layer configuration settings. Essentially, this allows you to provide an array of config files or hashes (the same as the original work), and uses a deep merge to combine and flatten the configurations. I added a couple of specs and had to use a to_yaml to get the hashes to print out correctly in the error message.

Please let me know if there are any corrections I would need to make if you were going to accept the pull request.

-M

moofish32 avatar Sep 17 '13 16:09 moofish32

@moofish32 You may be interested in chamber, which supports an arbitrary number of files.

m5rk avatar Nov 19 '13 13:11 m5rk