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

Variable processors #15

Open
anlutro opened this issue Dec 16, 2016 · 0 comments
Open

Variable processors #15

anlutro opened this issue Dec 16, 2016 · 0 comments

Comments

@anlutro
Copy link
Owner

anlutro commented Dec 16, 2016

Variable files are processed first. Variable processors are written in the same format, but unlike variable files, they do not overwrite existing variables.

Let's say you're using Prove to set up an application that has library dependencies. The version of said dependencies will vary depending on the verison of the application. You want the dependency verisons to be set depending on the application version by default, but you also want to be able to override the dependency version on a per-installation basis when necessary.

To solve this, you place the application version in the variables, and the default dependency versions are defined in variable processors.

Variable processors could be tied to states, meaning a variable processor is automatically invoked before the state file(s) are invoked.

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

1 participant