New feature: Override Release.

This commit is contained in:
Andrés Montañez
2012-03-31 00:33:17 -03:00
parent aaa65800d0
commit 0410c0efec
6 changed files with 54 additions and 15 deletions
+7 -2
View File
@@ -12,7 +12,12 @@ class Mage_Config
{
if (($environment != '') && file_exists('.mage/config/environment/' . $environment . '.yml')) {
$this->_environment = spyc_load_file('.mage/config/environment/' . $environment . '.yml');
$this->_environmentName = $environment;
$this->_environmentName = $environment;
if (is_array($this->_environment['deployment']['source'])) {
$newTemporal = $this->_environment['deployment']['source']['temporal']
. md5(microtime()) . '/';
$this->_environment['deployment']['source']['temporal'] = $newTemporal;
}
}
}
@@ -157,7 +162,7 @@ class Mage_Config
public function setFrom($from)
{
$options['deployment']['from'] = $from;
$this->_environment['deployment']['from'] = $from;
return $this;
}