Skip to content

Instantly share code, notes, and snippets.

@sawanoboly
Last active August 29, 2015 14:00
Show Gist options
  • Save sawanoboly/11167072 to your computer and use it in GitHub Desktop.
Save sawanoboly/11167072 to your computer and use it in GitHub Desktop.
Rubyプロジェクトのコンフィグ読み出しでChamberを使ってみた ref: http://qiita.com/sawanoboly/items/47c799fb7390323564ad
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