im wondering how i can source an additional file and override values. what i am trying to do is have a settings.yml file.... and an additional user_settings.yml file. user_settings.yml will be omitted form version control and unique to each developer.
an example of what i would like to do is...
settings.yml
defaults: &defaults
interceptor_email: noreply@domain.com
user_settings.yml # for userfoo
defaults:
interceptor_email: userfoo@domain.com
user_settings.yml # for userbar
defaults:
interceptor_email: userbar@domain.com
say my class is Settings, calling on Settings.interceptor_email for the developer userfoo would return userfoo@domain.com, and for userxyz, it would return noreply@domain.com since he doesnt have a local user_settings.yml file.
maybe i am going about this the wrong way?
im wondering how i can source an additional file and override values. what i am trying to do is have a settings.yml file.... and an additional user_settings.yml file. user_settings.yml will be omitted form version control and unique to each developer.
an example of what i would like to do is...
settings.yml
defaults: &defaults
interceptor_email: noreply@domain.com
user_settings.yml # for userfoo
defaults:
interceptor_email: userfoo@domain.com
user_settings.yml # for userbar
defaults:
interceptor_email: userbar@domain.com
say my class is Settings, calling on Settings.interceptor_email for the developer userfoo would return userfoo@domain.com, and for userxyz, it would return noreply@domain.com since he doesnt have a local user_settings.yml file.
maybe i am going about this the wrong way?