From 974304e707b923c5fd3eed70bc0827ce2587a711 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Monta=C3=B1ez?= Date: Thu, 7 Nov 2013 23:32:37 -0200 Subject: [PATCH] Make all Symfony2 tasks to gues where they should run (local or remote). --- Mage/Task/BuiltIn/Symfony2/AsseticDumpTask.php | 2 +- Mage/Task/BuiltIn/Symfony2/AssetsInstallTask.php | 2 +- Mage/Task/BuiltIn/Symfony2/CacheClearTask.php | 2 +- Mage/Task/BuiltIn/Symfony2/CacheWarmupTask.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Mage/Task/BuiltIn/Symfony2/AsseticDumpTask.php b/Mage/Task/BuiltIn/Symfony2/AsseticDumpTask.php index 02ffabc..8633034 100644 --- a/Mage/Task/BuiltIn/Symfony2/AsseticDumpTask.php +++ b/Mage/Task/BuiltIn/Symfony2/AsseticDumpTask.php @@ -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; } diff --git a/Mage/Task/BuiltIn/Symfony2/AssetsInstallTask.php b/Mage/Task/BuiltIn/Symfony2/AssetsInstallTask.php index d24a79d..dbd647e 100644 --- a/Mage/Task/BuiltIn/Symfony2/AssetsInstallTask.php +++ b/Mage/Task/BuiltIn/Symfony2/AssetsInstallTask.php @@ -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; } diff --git a/Mage/Task/BuiltIn/Symfony2/CacheClearTask.php b/Mage/Task/BuiltIn/Symfony2/CacheClearTask.php index 8ea7d98..9d261f9 100644 --- a/Mage/Task/BuiltIn/Symfony2/CacheClearTask.php +++ b/Mage/Task/BuiltIn/Symfony2/CacheClearTask.php @@ -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; } diff --git a/Mage/Task/BuiltIn/Symfony2/CacheWarmupTask.php b/Mage/Task/BuiltIn/Symfony2/CacheWarmupTask.php index 3bc547c..aaf85df 100644 --- a/Mage/Task/BuiltIn/Symfony2/CacheWarmupTask.php +++ b/Mage/Task/BuiltIn/Symfony2/CacheWarmupTask.php @@ -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; }