forked from ungleich-public/cdist
		
	move create_files_dirs more to up - it is similar to init()
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
This commit is contained in:
		
					parent
					
						
							
								d1708c78b6
							
						
					
				
			
			
				commit
				
					
						cd8695d3eb
					
				
			
		
					 1 changed files with 6 additions and 5 deletions
				
			
		| 
						 | 
				
			
			@ -125,6 +125,12 @@ class Local(object):
 | 
			
		|||
        self.mkdir(self.global_explorer_out_path)
 | 
			
		||||
        self.mkdir(self.bin_path)
 | 
			
		||||
 | 
			
		||||
    def create_files_dirs(self):
 | 
			
		||||
        self._init_directories()
 | 
			
		||||
        self._create_conf_path_and_link_conf_dirs()
 | 
			
		||||
        self._link_types_for_emulator()
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    def _init_cache_dir(self, cache_dir):
 | 
			
		||||
        if cache_dir:
 | 
			
		||||
            self.cache_path = cache_dir
 | 
			
		||||
| 
						 | 
				
			
			@ -177,11 +183,6 @@ class Local(object):
 | 
			
		|||
 | 
			
		||||
        return self.run(command, env, return_output)
 | 
			
		||||
 | 
			
		||||
    def create_files_dirs(self):
 | 
			
		||||
        self._init_directories()
 | 
			
		||||
        self._create_conf_path_and_link_conf_dirs()
 | 
			
		||||
        self._link_types_for_emulator()
 | 
			
		||||
 | 
			
		||||
    def save_cache(self):
 | 
			
		||||
        destination = os.path.join(self.cache_path, self.target_host)
 | 
			
		||||
        self.log.debug("Saving " + self.out_path + " to " + destination)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue