function _checkAppConfigFile() {
        if (!fs.existsSync(appConfigFile) && fs.existsSync(defaultAppConfigFile)) {
            var self = this;
            this.utils.copyFile(defaultAppConfigFile, appConfigFile, function(err) {
                if (err) {
                    throw new Error(err);
                } else {
                    _loadConfigurations.call(self);
                }
            });
        } else {
            _loadConfigurations.call(this);
        }
    }
/// Check if config file for the app is available. If not, and default app config file is available, copy it!
Check if config file for the app is available. If not, and default app config file is available, copy it!
Check if config file for the app is available . If not and default app config file is available copy it!
function _checkAppConfigFile() {
        if (!fs.existsSync(appConfigFile) && fs.existsSync(defaultAppConfigFile)) {
            var self = this;
            this.utils.copyFile(defaultAppConfigFile, appConfigFile, function(err) {
                if (err) {
                    throw new Error(err);
                } else {
                    _loadConfigurations.call(self);
                }
            });
        } else {
            _loadConfigurations.call(this);
        }
    }
function _checkAppConfigFile ( ) { if ( ! fs . existsSync ( appConfigFile ) && fs . existsSync ( defaultAppConfigFile ) ) { var self = this ; this . utils . copyFile ( defaultAppConfigFile , appConfigFile , function ( err ) { if ( err ) { throw new Error ( err ) ; } else { _loadConfigurations . call ( self ) ; } } ) ; } else { _loadConfigurations . call ( this ) ; } }
Check if config file for the app is available.
Check if config file for the app is available .