Skip to content

Tamplier gem provides ability to manage .yml.sample config files in your ruby projects.

License

Notifications You must be signed in to change notification settings

maksar/tamplier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Installation

Add this line to your application's Gemfile:

gem 'tamplier'

And then execute:

$ bundle

Or install it yourself as:

$ gem install tamplier

Usage

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

Contributing

  1. Fork it ( https://github.com/maksar/tamplier/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

About

Tamplier gem provides ability to manage .yml.sample config files in your ruby projects.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages