From 16c02a5b74424335406d76600c7c25b55d8b3c99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Monta=C3=B1ez?= Date: Mon, 9 Jan 2017 23:42:28 -0300 Subject: [PATCH] [Nostromo] Tweak on deployment --- src/Mage/Command/BuiltIn/DeployCommand.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Mage/Command/BuiltIn/DeployCommand.php b/src/Mage/Command/BuiltIn/DeployCommand.php index 50f771d..7249056 100644 --- a/src/Mage/Command/BuiltIn/DeployCommand.php +++ b/src/Mage/Command/BuiltIn/DeployCommand.php @@ -137,9 +137,6 @@ class DeployCommand extends AbstractCommand $this->runtime->setStage(Runtime::ON_DEPLOY); $onDeployTasks = $this->runtime->getTasks(); - if (!$this->runtime->inRollback()) { - } - if ($this->runtime->getEnvironmentConfig('releases', false)) { if (!in_array('deploy/targz/copy', $onDeployTasks) && !$this->runtime->inRollback()) { array_unshift($onDeployTasks, 'deploy/targz/copy'); @@ -149,7 +146,7 @@ class DeployCommand extends AbstractCommand array_unshift($onDeployTasks, 'deploy/release/prepare'); } } else { - if (!in_array('deploy/rsync', $onDeployTasks)) { + if (!in_array('deploy/rsync', $onDeployTasks) && !$this->runtime->inRollback()) { array_unshift($onDeployTasks, 'deploy/rsync'); } }