Proper exit code. Issue #52

This commit is contained in:
Andrés Montañez
2014-08-06 21:43:29 -03:00
parent 8df5534470
commit 5d728a9105
14 changed files with 72 additions and 18 deletions
+6
View File
@@ -27,6 +27,8 @@ class UpdateCommand extends AbstractCommand
*/
public function run()
{
$exitCode = 200;
$task = Factory::get('scm/update', $this->getConfig());
$task->init();
@@ -35,9 +37,13 @@ class UpdateCommand extends AbstractCommand
if ($result == true) {
Console::output('<green>OK</green>' . PHP_EOL, 0);
$exitCode = 0;
} else {
Console::output('<red>FAIL</red>' . PHP_EOL, 0);
}
return $exitCode;
}
}