Add tar_from parameter to deploy specific directories

Equvalent 'from' parameter as in version 1 to deploy
from a specific directory instead of the current root
directory.
This commit is contained in:
Thomas Spitzer 2017-03-06 20:47:06 +01:00
parent 1ebe6c4ba7
commit 97093c4b41

View file

@ -42,7 +42,8 @@ class PrepareTask extends AbstractTask
$excludes = $this->getExcludes();
$flags = $this->runtime->getEnvOption('tar_create', 'cfzp');
$cmdTar = sprintf('tar %s %s %s ./', $flags, $tarLocal, $excludes);
$from = $this->runtime->getEnvOption('tar_from', './');
$cmdTar = sprintf('tar %s %s %s %s', $flags, $tarLocal, $excludes, $from);
/** @var Process $process */
$process = $this->runtime->runLocalCommand($cmdTar, 300);