refactor ExportActions
This will allow disabling exports for remotes that are not configured to allow them. Also, exportSupported will be useful for the external special remote to probe. This commit was supported by the NSF-funded DataLad project
This commit is contained in:
		
					parent
					
						
							
								5483ea90ec
							
						
					
				
			
			
				commit
				
					
						a4328b49d2
					
				
			
		
					 20 changed files with 143 additions and 149 deletions
				
			
		| 
						 | 
				
			
			@ -19,6 +19,7 @@ import qualified Git
 | 
			
		|||
import Config
 | 
			
		||||
import Config.Cost
 | 
			
		||||
import Remote.Helper.Special
 | 
			
		||||
import Remote.Helper.Export
 | 
			
		||||
import Annex.Ssh
 | 
			
		||||
import Annex.UUID
 | 
			
		||||
import Utility.SshHost
 | 
			
		||||
| 
						 | 
				
			
			@ -60,11 +61,7 @@ gen r u c gc = do
 | 
			
		|||
		, lockContent = Nothing
 | 
			
		||||
		, checkPresent = checkPresentDummy
 | 
			
		||||
		, checkPresentCheap = ddarLocal ddarrepo
 | 
			
		||||
		, storeExport = Nothing
 | 
			
		||||
		, retrieveExport = Nothing
 | 
			
		||||
		, removeExport = Nothing
 | 
			
		||||
		, checkPresentExport = Nothing
 | 
			
		||||
		, renameExport = Nothing
 | 
			
		||||
		, exportActions = exportUnsupported
 | 
			
		||||
		, whereisKey = Nothing
 | 
			
		||||
		, remoteFsck = Nothing
 | 
			
		||||
		, repairRepo = Nothing
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue