mirror of
				https://github.com/hauke68/Magallanes.git
				synced 2025-11-04 09:00:18 +01:00 
			
		
		
		
	added missing exclude Files to TarGzTask
This commit is contained in:
		
							parent
							
								
									7f6cd952df
								
							
						
					
					
						commit
						899809dc33
					
				@ -81,10 +81,14 @@ class TarGzTask extends AbstractTask implements IsReleaseAware
 | 
			
		||||
        // Create Tar Gz
 | 
			
		||||
        $localTarGz = tempnam(sys_get_temp_dir(), 'mage');
 | 
			
		||||
        $remoteTarGz = basename($localTarGz);
 | 
			
		||||
        $command = 'tar cfz ' . $localTarGz . '.tar.gz ' . $this->getConfig()->deployment('from');
 | 
			
		||||
        $result = $this->runCommandLocal($command);
 | 
			
		||||
	    $excludes = array_merge($excludes, $userExcludes);
 | 
			
		||||
	    $excludeCmd = '';
 | 
			
		||||
	    foreach ($excludes as $excludeFile) {
 | 
			
		||||
		    $excludeCmd .= ' --exclude=' . $excludeFile;
 | 
			
		||||
	    }
 | 
			
		||||
 | 
			
		||||
        //. $this->excludes(array_merge($excludes, $userExcludes)) . ' '
 | 
			
		||||
	    $command = 'tar cfz ' . $localTarGz . '.tar.gz ' . $excludeCmd . ' ' . $this->getConfig()->deployment('from');
 | 
			
		||||
	    $result = $this->runCommandLocal($command);
 | 
			
		||||
 | 
			
		||||
        // Copy Tar Gz  to Remote Host
 | 
			
		||||
        $command = 'scp -P ' . $this->getConfig()->getHostPort() . ' ' . $localTarGz . '.tar.gz '
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user