How many times your deploys were failed, because you forgot to update .yml
files on server... No more!
Tamplier gem checks, that all keys from any .yml.sample
(or .sample.yml
or maybe .example.yml
or even .yml.example
) files are actually exist in real .yml
files.
That allows to detect configuration problems earlier and spend less time on deployment problems investigations.
Gem also provides command line utility to quickly setup fresh development environment by copying or symlinking sample files.
Add this line to your application's Gemfile:
gem 'tamplier'
And then execute:
$ bundle
Or install it yourself as:
$ gem install tamplier
Being included in Rails application, gem checks, that current environment configuration is valid (.yml
files, backed by .yml.sample
files have same set of keys). If configuration is not complete, exception will be raised and application will not start.
Gem provides a command line utility tamplier
.
To check .yml
files in config
subdirectory of current path, use
$ tamplier check [-e ENV]
To create a copy of every sample file (with .yml
extension) in config
subdirectory of current path, use
$ tamplier copy
To create a symbolic links (.yml
file will point to sample file) in config
subdirectory of current path, use
$ tamplier symlink
- Fork it ( https://github.com/maksar/tamplier/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request