|
|
|
@ -46,7 +46,7 @@ class TarGzTask extends BaseStrategyTaskAbstract implements IsReleaseAware
|
|
|
|
|
$this->checkOverrideRelease(); |
|
|
|
|
|
|
|
|
|
$excludes = $this->getExcludes(); |
|
|
|
|
$excludesListFilePath = $this->getConfig()->deployment('file_containing_excludes', '');; |
|
|
|
|
$excludesListFilePath = $this->getConfig()->deployment('excludes_file', '');; |
|
|
|
|
|
|
|
|
|
// If we are working with releases |
|
|
|
|
$deployToDirectory = $this->getConfig()->deployment('to'); |
|
|
|
@ -117,15 +117,15 @@ class TarGzTask extends BaseStrategyTaskAbstract implements IsReleaseAware
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Generates the Exclude from file for TarGz |
|
|
|
|
* @param string $excludesFilePath |
|
|
|
|
* Generates the Exclude from file for rsync |
|
|
|
|
* @param string $excludesFile |
|
|
|
|
* @return string |
|
|
|
|
*/ |
|
|
|
|
protected function excludesListFile($excludesFilePath) |
|
|
|
|
protected function excludesListFile($excludesFile) |
|
|
|
|
{ |
|
|
|
|
$excludesListFileRsync = ''; |
|
|
|
|
if(!empty($excludesFilePath)) { |
|
|
|
|
$excludesListFileRsync = ' --exclude-from=' . $excludesFilePath; |
|
|
|
|
if(!empty($excludesFile) && file_exists($excludesFile) && is_file($excludesFile) && is_readable($excludesFile)) { |
|
|
|
|
$excludesListFileRsync = ' --exclude-from=' . $excludesFile; |
|
|
|
|
} |
|
|
|
|
return $excludesListFileRsync; |
|
|
|
|
} |
|
|
|
|