From fa09553f7ff506c806304a7fdba5aebcbcfc4726 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Monta=C3=B1ez?= Date: Wed, 4 Jan 2017 20:21:12 -0300 Subject: [PATCH] [Nostromo] Tweak deployment --- src/Mage/Command/BuiltIn/DeployCommand.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Mage/Command/BuiltIn/DeployCommand.php b/src/Mage/Command/BuiltIn/DeployCommand.php index 7c295a3..42ba900 100644 --- a/src/Mage/Command/BuiltIn/DeployCommand.php +++ b/src/Mage/Command/BuiltIn/DeployCommand.php @@ -149,11 +149,11 @@ class DeployCommand extends AbstractCommand } if ($this->runtime->getEnvironmentConfig('releases', false)) { - if (!in_array('deploy/targz/copy', $onDeployTasks)) { + if (!in_array('deploy/targz/copy', $onDeployTasks) && !$this->runtime->inRollback()) { array_unshift($onDeployTasks, 'deploy/targz/copy'); } - if (!in_array('deploy/release/prepare', $onDeployTasks)) { + if (!in_array('deploy/release/prepare', $onDeployTasks) && !$this->runtime->inRollback()) { array_unshift($onDeployTasks, 'deploy/release/prepare'); } } else { @@ -250,7 +250,7 @@ class DeployCommand extends AbstractCommand protected function runTasks(OutputInterface $output, $tasks) { if (count($tasks) == 0) { - $output->writeln(sprintf(' No tasks defined for %s', $this->getStageName())); + $output->writeln(sprintf(' No tasks defined for %s stage', $this->getStageName())); $output->writeln(''); return true; }