mirror of
https://github.com/andres-montanez/Magallanes
synced 2024-06-16 12:35:04 +02:00
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:
parent
1ebe6c4ba7
commit
97093c4b41
|
@ -42,7 +42,8 @@ class PrepareTask extends AbstractTask
|
||||||
|
|
||||||
$excludes = $this->getExcludes();
|
$excludes = $this->getExcludes();
|
||||||
$flags = $this->runtime->getEnvOption('tar_create', 'cfzp');
|
$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 */
|
/** @var Process $process */
|
||||||
$process = $this->runtime->runLocalCommand($cmdTar, 300);
|
$process = $this->runtime->runLocalCommand($cmdTar, 300);
|
||||||
|
|
Loading…
Reference in a new issue