forked from ungleich-public/cdist
		
	in theory can export library to user now
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
		
					parent
					
						
							
								167098d731
							
						
					
				
			
			
				commit
				
					
						f2badcd2b7
					
				
			
		
					 1 changed files with 19 additions and 0 deletions
				
			
		
							
								
								
									
										19
									
								
								doc/dev/logs/2011-06-14.library_for_user
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								doc/dev/logs/2011-06-14.library_for_user
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,19 @@ | ||||||
|  | How to make library functions available to manifest, explorer, etc. | ||||||
|  | 
 | ||||||
|  | Some ideas / background: | ||||||
|  | 
 | ||||||
|  |    - do not have the user to source $__lib/foo if not needed | ||||||
|  |    - have $__cdist_lib for internal stuff (probably referring to core/) | ||||||
|  | 
 | ||||||
|  | Implementation: | ||||||
|  | 
 | ||||||
|  | load_lib() | ||||||
|  | { | ||||||
|  |    . $__cdist_lib/* | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | run_code_from_user() | ||||||
|  | { | ||||||
|  |    load_lib | ||||||
|  |    . file_from_user | ||||||
|  | } | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue