boot( pRestore=false){
        let conf = null, data=null;
        
        conf = _path_.join( 
            _os_.homedir(), 
            '.dexcalibur',  
            (pRestore ? 'config.backup.json' : 'config.json'));

        // detect config
        if(_fs_.existsSync(conf) == false){
            // error
            console.error('[ERROR] Configuration file not found into :'+conf);
            console.error('Aborted :(');
            process.exit();
        }

        // init config
        this.config = new Configuration();
        
        // read configuration file 
        data = JSON.parse(_fs_.readFileSync(conf));

        // Start Dexcalibur
        if(data.installed == true){
            this.config.import( data, true, true);
            this.ws = new DexcaliburWorkspace( this.config.getWorkspaceDir() );
            
            return true;
        }

        // Turn into install mode
        return false;
    }
/**
     * To load bootstrap file or configuration from home
     * 
     * @returns {Boolean} TRUE if ready to start, FALSE if install is required.
     */
To load bootstrap file or configuration from home

@returns {Boolean} TRUE if ready to start, FALSE if install is required.
To load bootstrap file or configuration from home @returns { Boolean } TRUE if ready to start FALSE if install is required .
boot( pRestore=false){
        let conf = null, data=null;
        conf = _path_.join( 
            _os_.homedir(), 
            '.dexcalibur',  
            (pRestore ? 'config.backup.json' : 'config.json'));
        if(_fs_.existsSync(conf) == false){
            console.error('[ERROR] Configuration file not found into :'+conf);
            console.error('Aborted :(');
            process.exit();
        }
        this.config = new Configuration();
        data = JSON.parse(_fs_.readFileSync(conf));
        if(data.installed == true){
            this.config.import( data, true, true);
            this.ws = new DexcaliburWorkspace( this.config.getWorkspaceDir() );
            return true;
        }
        return false;
    }
boot ( pRestore = false ) { let conf = null , data = null ; conf = _path_ . join ( _os_ . homedir ( ) , '.dexcalibur' , ( pRestore ? 'config.backup.json' : 'config.json' ) ) ; if ( _fs_ . existsSync ( conf ) == false ) { console . error ( '[ERROR] Configuration file not found into :' + conf ) ; console . error ( 'Aborted :(' ) ; process . exit ( ) ; } this . config = new Configuration ( ) ; data = JSON . parse ( _fs_ . readFileSync ( conf ) ) ; if ( data . installed == true ) { this . config . import ( data , true , true ) ; this . ws = new DexcaliburWorkspace ( this . config . getWorkspaceDir ( ) ) ; return true ; } return false ; }
To load bootstrap file or configuration from home
To load bootstrap file or configuration from home
// detect config // error // init config // read configuration file  // Start Dexcalibur // Turn into install mode