Last active
August 29, 2015 14:00
-
-
Save sawanoboly/11167072 to your computer and use it in GitHub Desktop.
Rubyプロジェクトのコンフィグ読み出しでChamberを使ってみた ref: http://qiita.com/sawanoboly/items/47c799fb7390323564ad
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'chamber' | |
env_confs = [ | |
File.expand_path('../../config/environment.yml', __FILE__), | |
File.expand_path('../../config/environment.local.yml', __FILE__) | |
] | |
EnvSettings = Chamber.load files: env_confs | |
app_confs = [ | |
File.expand_path('../../config/app.yml', __FILE__), | |
File.expand_path('../../config/app.local.yml', __FILE__) | |
] | |
AppSettings = Chamber.load files: app_confs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment