Module: JCap::Recipes::Util
- Defined in:
- lib/j-cap-recipes/util.rb
Class Method Summary collapse
Class Method Details
.database_name(env_name, config_contents) ⇒ Object
5 6 7 8 |
# File 'lib/j-cap-recipes/util.rb', line 5 def database_name(env_name, config_contents) db_config = YAML.load(config_contents) db_config[env_name][:database] || db_config[env_name]['database'] end |