This commit is contained in:
Andrés Montañez
2014-11-01 19:19:05 -02:00
parent 8771cf2ab1
commit 40e8c33846
7 changed files with 15 additions and 15 deletions
+3 -3
View File
@@ -28,19 +28,19 @@ class RollbackCommand extends AbstractCommand implements RequiresEnvironment
*/
public function run()
{
$exitCode = 450;
$exitCode = 105;
$releaseId = $this->getConfig()->getArgument(1);
if (!is_numeric($releaseId)) {
Console::output('<red>This release is mandatory.</red>', 1, 2);
return 451;
return 104;
}
$lockFile = getcwd() . '/.mage/' . $this->getConfig()->getEnvironment() . '.lock';
if (file_exists($lockFile)) {
Console::output('<red>This environment is locked!</red>', 1, 2);
echo file_get_contents($lockFile);
return 20;
return 106;
}
// Run Tasks for Deployment