Make all Symfony2 tasks to gues where they should run (local or remote).

This commit is contained in:
Andrés Montañez 2013-11-07 23:32:37 -02:00
parent 6f6cf2436a
commit 974304e707
4 changed files with 4 additions and 4 deletions

View file

@ -40,7 +40,7 @@ class AsseticDumpTask extends AbstractTask
$env = $this->getParameter('env', 'dev');
$command = 'app/console assetic:dump --env=' . $env;
$result = $this->runCommandLocal($command);
$result = $this->runCommand($command);
return $result;
}

View file

@ -47,7 +47,7 @@ class AssetsInstallTask extends AbstractTask
}
$command = 'app/console assets:install ' . ($symlink ? '--symlink' : '') . ' ' . ($relative ? '--relative' : '') . ' --env=' . $env . ' ' . $target;
$result = $this->runCommandLocal($command);
$result = $this->runCommand($command);
return $result;
}

View file

@ -40,7 +40,7 @@ class CacheClearTask extends AbstractTask
$env = $this->getParameter('env', 'dev');
$command = 'app/console cache:clear --env=' . $env;
$result = $this->runCommandLocal($command);
$result = $this->runCommand($command);
return $result;
}

View file

@ -40,7 +40,7 @@ class CacheWarmupTask extends AbstractTask
$env = $this->getParameter('env', 'dev');
$command = 'app/console cache:warmup --env=' . $env;
$result = $this->runCommandLocal($command);
$result = $this->runCommand($command);
return $result;
}