Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

defaults should exist outside of config file #43

Open
cjestel opened this issue May 18, 2016 · 1 comment
Open

defaults should exist outside of config file #43

cjestel opened this issue May 18, 2016 · 1 comment

Comments

@cjestel
Copy link
Contributor

cjestel commented May 18, 2016

Currently dbdeployer depends on default values existing for certain things. It's possible that people may attempt to strip down the config file to only what they want to override. If this were to happen we shouldn't break. I'm thinking it'd be good to have a defaults file that gets sourced prior to the config file so that we always have our defaults regardless of what is in the config file and it is just overridden if necessary.

@mattmc3
Copy link

mattmc3 commented Feb 23, 2017

Or, alternatively, use the bash default assignment syntax to assign a default on first use:

VAR1="${VAR1:-default value}". # if var1 exists, no-op; else assign default

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants