1
0
mirror of https://github.com/hauke68/Magallanes.git synced 2025-09-13 04:30:17 +02:00

Reloads config after SCM Update.

This commit is contained in:
Andrés Montañez 2012-09-19 19:26:10 -03:00
parent 04b194d91a
commit 59cdb24087
2 changed files with 12 additions and 4 deletions

View File

@ -8,6 +8,13 @@ class Mage_Config
private $_host = null;
private $_releaseId = null;
public function reloadConfig()
{
$this->loadGeneral();
$this->loadSCM();
$this->loadEnvironment($this->getEnvironmentName());
}
public function loadEnvironment($environment)
{
if (($environment != '') && file_exists('.mage/config/environment/' . $environment . '.yml')) {

View File

@ -35,6 +35,7 @@ class Mage_Task_BuiltIn_Scm_Update
}
$result = $this->_runLocalCommand($command);
$this->_config->reloadConfig();
return $result;
}