Change Deploy Stages with Constants.

This commit is contained in:
Andrés Montañez
2013-12-15 17:11:53 -02:00
parent d55e18b34b
commit eecf9bf4ea
4 changed files with 22 additions and 15 deletions
+1 -1
View File
@@ -207,7 +207,7 @@ abstract class AbstractTask
*/
protected final function runCommand($command, &$output = null)
{
if ($this->getStage() == 'deploy') {
if ($this->getStage() == self::STAGE_DEPLOY) {
return $this->runCommandRemote($command, $output);
} else {
return $this->runCommandLocal($command, $output);