Browse Source

remove tab set space

1.0
Bastian Guse 11 years ago
parent
commit
935e9bf896
  1. 16
      Mage/Task/BuiltIn/Deployment/Strategy/TarGzTask.php

16
Mage/Task/BuiltIn/Deployment/Strategy/TarGzTask.php

@ -81,14 +81,14 @@ class TarGzTask extends AbstractTask implements IsReleaseAware
// Create Tar Gz // Create Tar Gz
$localTarGz = tempnam(sys_get_temp_dir(), 'mage'); $localTarGz = tempnam(sys_get_temp_dir(), 'mage');
$remoteTarGz = basename($localTarGz); $remoteTarGz = basename($localTarGz);
$excludes = array_merge($excludes, $userExcludes); $excludes = array_merge($excludes, $userExcludes);
$excludeCmd = ''; $excludeCmd = '';
foreach ($excludes as $excludeFile) { foreach ($excludes as $excludeFile) {
$excludeCmd .= ' --exclude=' . $excludeFile; $excludeCmd .= ' --exclude=' . $excludeFile;
} }
$command = 'tar cfz ' . $localTarGz . '.tar.gz ' . $excludeCmd . ' ' . $this->getConfig()->deployment('from'); $command = 'tar cfz ' . $localTarGz . '.tar.gz ' . $excludeCmd . ' ' . $this->getConfig()->deployment('from');
$result = $this->runCommandLocal($command); $result = $this->runCommandLocal($command);
// Copy Tar Gz to Remote Host // Copy Tar Gz to Remote Host
$command = 'scp -P ' . $this->getConfig()->getHostPort() . ' ' . $localTarGz . '.tar.gz ' $command = 'scp -P ' . $this->getConfig()->getHostPort() . ' ' . $localTarGz . '.tar.gz '

Loading…
Cancel
Save