Confmake makes configuration files.
Its a command line tool which procedurally generates configuration files from a template.
So far, you can use
- Shell environment variables
- Property Lists
``
Requires ruby version >= 2.0
Please feel free to fork and whatnot...
Get the dependencies
bundle install
Run the tests
rake spec
rake features
###The point?
I had the need to procedurally create configuration files when automating the deployment of particular services.
###Why not just use sed and replace in some kind of bash script?
I originally used this approach but the script grew unwieldy, maybe I don't do good bash or maybe its just because of lack of testing. Whilst the benefit of a bash script is that it will run as-is on many systems, I find it better to treat a tool like this as software and therefore use the ecosystems already available to manage dependencies and deploy. I also enjoy programming in ruby :)
error message when config contains env variable that doesnt existVersion 0.0.2Read config from properties fileVersion 0.0.4verbose commandVersion 0.0.5YAMLVersion 0.1.0
-
JSON Version 0.1.1
-
proper logging! 0.1.2
-
improve verbose messages
-
summary of what will change? dry-run maybe?
-
diff on what has changed in a config if overwriting?