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 -9
View File
@@ -99,15 +99,13 @@ class Mage_Task_Deploy
{
$tasksToRun = $config->getTasks($stage);
// Look for Remote Source
if ($this->_config->deployment('from', false) == false) {
if (is_array($this->_config->deployment('source', null))) {
if ($stage == 'pre-deploy') {
array_unshift($tasksToRun, 'scm/clone');
} elseif ($stage == 'post-deploy') {
array_unshift($tasksToRun, 'scm/remove-clone');
}
}
// Look for Remote Source
if (is_array($this->_config->deployment('source', null))) {
if ($stage == 'pre-deploy') {
array_unshift($tasksToRun, 'scm/clone');
} elseif ($stage == 'post-deploy') {
array_unshift($tasksToRun, 'scm/remove-clone');
}
}
if (count($tasksToRun) == 0) {