Sitelet https://github.com/binarylogic/settingslogic/issues/17
Skip to content

sourcing additional files #17

Description

@brewster1134

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions