[Nostromo] Add flags for TarGz tasks

This commit is contained in:
Andrés Montañez
2017-01-14 22:27:52 -03:00
parent 22576d082f
commit d7724495a9
3 changed files with 5 additions and 3 deletions
@@ -41,7 +41,8 @@ class PrepareTask extends AbstractTask
$this->runtime->setVar('targz_local', $tarGzLocal);
$excludes = $this->getExcludes();
$cmdTarGz = sprintf('tar cfzop %s %s ./', $tarGzLocal, $excludes);
$flags = $this->runtime->getEnvOption('tar_create', 'cfzop');
$cmdTarGz = sprintf('tar %s %s %s ./', $flags, $tarGzLocal, $excludes);
/** @var Process $process */
$process = $this->runtime->runLocalCommand($cmdTarGz, 300);