Project

cfa

0.01
No commit activity in last 3 years
No release in over 3 years
Library offering separation of parsing and file access from the rest of the logic for managing configuraton files. It has built-in support for parsing using augeas lenses and also for working with files directly in memory.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

CFA - Config Files Api Gem

Code Climate Coverage Status Ruby gem providing a modular and developer friendly way to access and modify configuration files in a system. It's structured in three layers.

The first layer provides access to the file and its content. By default it accesses the local system, but it can be replaced by alternatives to work on a chroot environment, on test data, on a remote machine or any other scenario.

The second layer is the parser, that understands the structure of the configuration files. There are also several possible variants like augeas based, XML parsed by standard ruby library or CVS via cvs specialized library.

The third layer consist on a set of models representing the files to provide more high level actions. Its main purposes are to ensure consistency of the files and to provide high level API for manipulating the files. The models live in their own gems as plugins built on top of this gem.