forked from ungleich-public/cdist
		
	implement list_type_explorer_names
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
This commit is contained in:
		
					parent
					
						
							
								fb4d20e7e8
							
						
					
				
			
			
				commit
				
					
						8fb51a396a
					
				
			
		
					 1 changed files with 5 additions and 0 deletions
				
			
		| 
						 | 
					@ -92,6 +92,11 @@ class Explorer(object):
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    ### type
 | 
					    ### type
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    def list_type_explorer_names(self, cdist_type):
 | 
				
			||||||
 | 
					        """Return a list of explorer names for the given type."""
 | 
				
			||||||
 | 
					        source = os.path.join(self.local.type_path, cdist_type.explorer_path)
 | 
				
			||||||
 | 
					        return os.listdir(source)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def transfer_type_explorers(self, cdist_type):
 | 
					    def transfer_type_explorers(self, cdist_type):
 | 
				
			||||||
        """Transfer the type explorers for the given type to the remote side."""
 | 
					        """Transfer the type explorers for the given type to the remote side."""
 | 
				
			||||||
        source = os.path.join(self.local.type_path, cdist_type.explorer_path)
 | 
					        source = os.path.join(self.local.type_path, cdist_type.explorer_path)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue