|
|
@ -10,6 +10,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
namespace Mage\Task\BuiltIn\Deployment\Strategy; |
|
|
|
namespace Mage\Task\BuiltIn\Deployment\Strategy; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
use Mage\Console; |
|
|
|
use Mage\Task\BuiltIn\Deployment\Strategy\BaseStrategyTaskAbstract; |
|
|
|
use Mage\Task\BuiltIn\Deployment\Strategy\BaseStrategyTaskAbstract; |
|
|
|
use Mage\Task\Releases\IsReleaseAware; |
|
|
|
use Mage\Task\Releases\IsReleaseAware; |
|
|
|
|
|
|
|
|
|
|
@ -75,11 +76,11 @@ class TarGzTask extends BaseStrategyTaskAbstract implements IsReleaseAware |
|
|
|
$result = $this->runCommandLocal($command) && $result; |
|
|
|
$result = $this->runCommandLocal($command) && $result; |
|
|
|
|
|
|
|
|
|
|
|
// Extract Tar Gz |
|
|
|
// Extract Tar Gz |
|
|
|
$this->getReleasesAwareCommand('tar xfz ' . $remoteTarGz . '.tar.gz'); |
|
|
|
$command = $this->getReleasesAwareCommand('tar xfz ' . $remoteTarGz . '.tar.gz'); |
|
|
|
$result = $this->runCommandRemote($command) && $result; |
|
|
|
$result = $this->runCommandRemote($command) && $result; |
|
|
|
|
|
|
|
|
|
|
|
// Delete Tar Gz from Remote Host |
|
|
|
// Delete Tar Gz from Remote Host |
|
|
|
$this->getReleasesAwareCommand('rm ' . $remoteTarGz . '.tar.gz'); |
|
|
|
$command = $this->getReleasesAwareCommand('rm ' . $remoteTarGz . '.tar.gz'); |
|
|
|
$result = $this->runCommandRemote($command) && $result; |
|
|
|
$result = $this->runCommandRemote($command) && $result; |
|
|
|
|
|
|
|
|
|
|
|
// Delete Tar Gz from Local |
|
|
|
// Delete Tar Gz from Local |
|
|
|