Browse Source

Reloads config after SCM Update.

1.0
Andrés Montañez 12 years ago
parent
commit
59cdb24087
  1. 7
      Mage/Config.php
  2. 1
      Mage/Task/BuiltIn/Scm/Update.php

7
Mage/Config.php

@ -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')) {

1
Mage/Task/BuiltIn/Scm/Update.php

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

Loading…
Cancel
Save