Mage/Config.php
/**
     * Loads the Environment configuration
     *
     * @throws Exception
     * @return boolean
     */
Loads the Environment configuration
@throws Exception
@return boolean
Loads the Environment configuration @throws Exception @return boolean
protected function loadEnvironment()
    {
    	$environment = $this->getEnvironment();
    	if (($environment != false) && file_exists('.mage/config/environment/' . $environment . '.yml')) {
    		$this->config['environment'] = spyc_load_file('.mage/config/environment/' . $environment . '.yml');
    		if (isset($this->config['environment']['deployment']['source']) && is_array($this->config['environment']['deployment']['source'])) {
    			if (trim($this->config['environment']['deployment']['source']['temporal']) == '') {
    				$this->config['environment']['deployment']['source']['temporal'] = '/tmp';
    			}
    			$newTemporal = rtrim($this->config['environment']['deployment']['source']['temporal'], '/')
    			. '/' . md5(microtime()) . '/';
    			$this->config['environment']['deployment']['source']['temporal'] = $newTemporal;
    		}
    		return true;
    	} else if (($environment != '') && !file_exists('.mage/config/environment/' . $environment . '.yml')) {
    		throw new Exception('Environment does not exists.');
    	}
    	return false;
    }
protected function loadEnvironment ( ) { $ environment = $ this -> getEnvironment ( ) ; if ( ( $ environment != false ) && file_exists ( '.mage/config/environment/' . $ environment . '.yml' ) ) { $ this -> config [ 'environment' ] = spyc_load_file ( '.mage/config/environment/' . $ environment . '.yml' ) ; if ( isset ( $ this -> config [ 'environment' ] [ 'deployment' ] [ 'source' ] ) && is_array ( $ this -> config [ 'environment' ] [ 'deployment' ] [ 'source' ] ) ) { if ( trim ( $ this -> config [ 'environment' ] [ 'deployment' ] [ 'source' ] [ 'temporal' ] ) == '' ) { $ this -> config [ 'environment' ] [ 'deployment' ] [ 'source' ] [ 'temporal' ] = '/tmp' ; } $ newTemporal = rtrim ( $ this -> config [ 'environment' ] [ 'deployment' ] [ 'source' ] [ 'temporal' ] , '/' ) . '/' . md5 ( microtime ( ) ) . '/' ; $ this -> config [ 'environment' ] [ 'deployment' ] [ 'source' ] [ 'temporal' ] = $ newTemporal ; } return true ; } else if ( ( $ environment != '' ) && ! file_exists ( '.mage/config/environment/' . $ environment . '.yml' ) ) { throw new Exception ( 'Environment does not exists.' ) ; } return false ; }
Loads the Environment configuration
 @throws Exception
 @return boolean
Loads the Environment configuration @throws Exception @return boolean
// Create temporal directory for clone