============
rules_config
============

This module implent a system for take back the rules chains from a
configuration file.

For that, it use the ecsconfiguration package.
So in first we need to load a configuration file::

    >>> import os
    >>> from emencia.ecsconfiguration import Configuration
    >>> file = os.path.join(doc_path, 'etc', 'ecsdb.conf')
    >>> file = os.path.realpath(file)
    >>> conf = Configuration(file)

RulesInit
---------

This class will load the rules in fonction of configuration file loaded by
ecsconfiguration::

    >>> from rules.rules_config import RulesInit
    >>> rules = RulesInit()
    >>> 'amount' in rules.chain.keys()
    True
