Skip to content
/ mt Public

ruby script to manages config files. esp. for non ruby projects

Notifications You must be signed in to change notification settings

sragu/mt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

#mt: minimal template

A simple ruby script to manage config files.

The config file has two sections namely content and config separated by a delimiter (__CONFIG__) more like ruby __END__. The content section could have simple template varibles of the the sytle $varname, for which the values are provided on the config section.

The config section has a env key which manages how many environments the files need to be generated for. The vars property on the section has the values of the property for different environments.

Usage:

chmod +x ./process.rb

./process.rb app.xml.trb

See: app.xml.trb for sample config file

Output:

<!-- updated by sraguram on Sun Oct 27 23:22:33 +0000 2013 -->
<appSettings>
  <app name="rabbit.host" value="rabbitmq.local" />
  <app name="service.endpoint" value="http://host.dev" />
</appSettings>

About

ruby script to manages config files. esp. for non ruby projects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages