[Nostromo] Mess Detector: naming rule

This commit is contained in:
Andrés Montañez
2017-01-07 18:44:28 -03:00
parent 424ff95d49
commit 193265e424
8 changed files with 20 additions and 20 deletions
@@ -104,7 +104,7 @@ class RollbackCommand extends DeployCommand
$hosts = $this->runtime->getEnvironmentConfig('hosts');
$hostPath = rtrim($this->runtime->getEnvironmentConfig('host_path'), '/');
$releaseAvailableInHosts = 0;
$availableInHosts = 0;
foreach ($hosts as $host) {
$this->runtime->setWorkingHost($host);
@@ -121,13 +121,13 @@ class RollbackCommand extends DeployCommand
}
if (in_array($releaseToRollback, $releases)) {
$releaseAvailableInHosts++;
$availableInHosts++;
}
$this->runtime->setWorkingHost(null);
}
if ($releaseAvailableInHosts === count($hosts)) {
if ($availableInHosts === count($hosts)) {
return $releaseToRollback;
}