lib/config-generator.js
function(file) {
        var self = this;

        return new Promise(function(resolve) {
            fs.readFileAsync(file, 'utf-8')
                .then(function(content) {
                    return self._parseFile(file, content);
                })
                .then(function(ast) {
                    return self._getConfig(file, ast);
                })
                .then(function(config) {
                    self._modules = self._modules.concat(config);

                    resolve(config);
                });
        });
    }
function(file) {
        var self = this;

        return new Promise(function(resolve) {
            fs.readFileAsync(file, 'utf-8')
                .then(function(content) {
                    return self._parseFile(file, content);
                })
                .then(function(ast) {
                    return self._getConfig(file, ast);
                })
                .then(function(config) {
                    self._modules = self._modules.concat(config);

                    resolve(config);
                });
        });
    }
function ( file ) { var self = this ; return new Promise ( function ( resolve ) { fs . readFileAsync ( file , 'utf-8' ) . then ( function ( content ) { return self . _parseFile ( file , content ) ; } ) . then ( function ( ast ) { return self . _getConfig ( file , ast ) ; } ) . then ( function ( config ) { self . _modules = self . _modules . concat ( config ) ; resolve ( config ) ; } ) ; } ) ; }
Processes a file and generates configuration object for all modules found inside.

@method _processFile
@protected
@param {String} file The file which should be processed
@return {Promise} Returns a Promise which will be resolved with the generated config
Processes a file and generates configuration object for all modules found inside .