<commit_before># Magento Configuration Sync

This is a tool designed to allow teams to keep Magento configuration under version control, eliminating the unknown when tracking down potentially configuration related bugs.

![image](http://up.nicksays.co.uk/image/3J3n461U1E35/Screen%20Shot%202013-09-11%20at%2018.47.10.png)

## File Syntax

The configuration values are stored in a YAML file.  The format of the file is as follows:

    environment:
        scope_key:
           path: value

For example:

    production:
        default:
            dev/debug/template_hints: 0
    development:
        default:
            dev/debug/template_hints: 1
        stores-1:
            currency/options/base: GBP

The above will disable template hints on product, enable template hints on the development environment and set the currency to Pounds Sterling in the store scope for the store with ID #1.

Valid scope keys are:

* default
* stores-`$id`
* websites-`$id`

## Usage

    php bin/mageconfigsync --help
    
 Most commands take an optional argument of `--magento-root` if not running from within a Magento directory and an optional argyment of `--env` used to describe the current environment of the configuration.

### Dump
<commit_msg>Enhance documentation with regards to absence of config keys.<commit_after># Magento Configuration Sync

This is a tool designed to allow teams to keep Magento configuration under version control, eliminating the unknown when tracking down potentially configuration related bugs.

![image](http://up.nicksays.co.uk/image/3J3n461U1E35/Screen%20Shot%202013-09-11%20at%2018.47.10.png)

## File Syntax

The configuration values are stored in a YAML file.  The format of the file is as follows:

    environment:
        scope_key:
           path: value

For example:

    production:
        default:
            dev/debug/template_hints: 0
    development:
        default:
            dev/debug/template_hints: 1
        stores-1:
            currency/options/base: GBP
            dev/restrict/allow_ips: null

The above will:

* disable template hints on product;
* enable template hints on the development environment;
* set the currency to Pounds Sterling in the store scope for the store with ID #1;
* ensure the allowed development ip's are inherited from the website for store #1.

Valid scope keys are:

* default
* stores-`$id`
* websites-`$id`

## Usage

    php bin/mageconfigsync --help
    
 Most commands take an optional argument of `--magento-root` if not running from within a Magento directory and an optional argyment of `--env` used to describe the current environment of the configuration.

### Dump

{'fraction_non_alphanumeric': 0.06871948929778446, 'fraction_numerical': 0.025910627112279386, 'mean_word_length': 3.195275590551181, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7400938', 'n_tokens_mistral': 776, 'n_tokens_neox': 720, 'n_words': 304}