Allow Exclude to be defined globally.

This commit is contained in:
Andrés Montañez
2017-04-14 16:29:22 -03:00
parent ef72936c52
commit 0fe106610a
5 changed files with 50 additions and 2 deletions
+1 -1
View File
@@ -54,7 +54,7 @@ class RsyncTask extends AbstractTask
protected function getExcludes()
{
$excludes = $this->runtime->getEnvOption('exclude', []);
$excludes = $this->runtime->getMergedOption('exclude', []);
$excludes = array_merge(['.git'], array_filter($excludes));
foreach ($excludes as &$exclude) {