document cdist-type-emulator
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
		
					parent
					
						
							
								0d4f2a6c4b
							
						
					
				
			
			
				commit
				
					
						bda2adb22c
					
				
			
		
					 4 changed files with 58 additions and 2 deletions
				
			
		
							
								
								
									
										1
									
								
								Makefile
									
										
									
									
									
								
							
							
						
						
									
										1
									
								
								Makefile
									
										
									
									
									
								
							| 
						 | 
					@ -32,6 +32,7 @@ MANSRC=$(MANDIR)/cdist.text						\
 | 
				
			||||||
	$(MANDIR)/cdist-stages.text					\
 | 
						$(MANDIR)/cdist-stages.text					\
 | 
				
			||||||
	$(MANDIR)/cdist-type.text						\
 | 
						$(MANDIR)/cdist-type.text						\
 | 
				
			||||||
	$(MANDIR)/cdist-type-build-emulation.text \
 | 
						$(MANDIR)/cdist-type-build-emulation.text \
 | 
				
			||||||
 | 
						$(MANDIR)/cdist-type-emulator.text			\
 | 
				
			||||||
	$(MANDIR)/cdist-type-template.text			\
 | 
						$(MANDIR)/cdist-type-template.text			\
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,5 +1,6 @@
 | 
				
			||||||
1.3.1:
 | 
					1.3.1:
 | 
				
			||||||
	* Document cdist-type-build-emulation
 | 
						* Document cdist-type-build-emulation
 | 
				
			||||||
 | 
						* Document cdist-type-emulator
 | 
				
			||||||
 | 
					
 | 
				
			||||||
1.3.0: 2011-03-20
 | 
					1.3.0: 2011-03-20
 | 
				
			||||||
	* Add support for local and remote code generation and execution
 | 
						* Add support for local and remote code generation and execution
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,5 +1,3 @@
 | 
				
			||||||
Ensure bin/* is documented
 | 
					Ensure bin/* is documented
 | 
				
			||||||
   - cdist-remote-code-run-all
 | 
					   - cdist-remote-code-run-all
 | 
				
			||||||
   - cdist-remote-explorer-run
 | 
					   - cdist-remote-explorer-run
 | 
				
			||||||
   - cdist-type-emulator
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										56
									
								
								doc/man/cdist-type-emulator.text
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										56
									
								
								doc/man/cdist-type-emulator.text
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,56 @@
 | 
				
			||||||
 | 
					cdist-type-emulator(1)
 | 
				
			||||||
 | 
					======================
 | 
				
			||||||
 | 
					Nico Schottelius <nico-cdist--@--schottelius.org>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					NAME
 | 
				
			||||||
 | 
					----
 | 
				
			||||||
 | 
					cdist-type-emulator - Emulate type and record parameters and dependencies
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					SYNOPSIS
 | 
				
			||||||
 | 
					--------
 | 
				
			||||||
 | 
					cdist-type-emulator [TYPE ARGS]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					DESCRIPTION
 | 
				
			||||||
 | 
					-----------
 | 
				
			||||||
 | 
					cdist-type-emulator is normally called through a link to it of the
 | 
				
			||||||
 | 
					name of a specifc type. It saves the given parameters into
 | 
				
			||||||
 | 
					a parameters directory and the requirements into a require file.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					It checks whether the parameters are valid:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- are required parameter given?
 | 
				
			||||||
 | 
					- are all other required parameters specified as optional?
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					EXAMPLES
 | 
				
			||||||
 | 
					--------
 | 
				
			||||||
 | 
					Your manifest may contain stuff like this:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					--------------------------------------------------------------------------------
 | 
				
			||||||
 | 
					__addifnosuchline /tmp/linetest --line "test"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					__motd
 | 
				
			||||||
 | 
					--------------------------------------------------------------------------------
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					In both cases, cdist-type-emulator is called instead of a real type.
 | 
				
			||||||
 | 
					In the first case, the object id "/tmp/linetest" is recorded and the
 | 
				
			||||||
 | 
					parameter "line" stored with the content "test".
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					In the second case, __motd must be decleared as a singleton, as the
 | 
				
			||||||
 | 
					object id is missing.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					SEE ALSO
 | 
				
			||||||
 | 
					--------
 | 
				
			||||||
 | 
					- cdist(7)
 | 
				
			||||||
 | 
					- cdist-type-build-emulation(1)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					COPYING
 | 
				
			||||||
 | 
					-------
 | 
				
			||||||
 | 
					Copyright \(C) 2011 Nico Schottelius. Free use of this software is
 | 
				
			||||||
 | 
					granted under the terms of the GNU General Public License version 3 (GPLv3).
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue