Project

tamplier

0.01
No commit activity in last 3 years
No release in over 3 years
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 sample 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.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.6
>= 0
>= 0
>= 0
>= 0

Runtime

 Project Readme

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