added in-deploy flag @ rollback task.

This commit is contained in:
Alex V Kotelnikov 2014-11-13 16:47:52 +04:00
parent 5eb26748ab
commit a632dac80a

View file

@ -55,6 +55,8 @@ class RollbackTask extends AbstractTask implements IsReleaseAware
$result = $this->runCommandRemote('ls -1 ' . $releasesDirectory, $output);
$releases = ($output == '') ? array() : explode(PHP_EOL, $output);
$inDeploy = $this->getParameter('inDeploy',false);
if (count($releases) == 0) {
Console::output('Release are not available for <bold>' . $this->getConfig()->getHost() . '</bold> ... <red>FAIL</red>');