Add docstrings to yardoc face
This commit is contained in:
		
							parent
							
								
									353b48bb1a
								
							
						
					
					
						commit
						043fb34721
					
				| 
						 | 
					@ -1,10 +1,14 @@
 | 
				
			||||||
require 'puppet/face'
 | 
					require 'puppet/face'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Puppet::Face.define(:yardoc, '0.0.1') do
 | 
					Puppet::Face.define(:yardoc, '0.0.1') do
 | 
				
			||||||
 | 
					  summary "Generate Puppet documentation with YARD."
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  action(:yardoc) do
 | 
					  action(:yardoc) do
 | 
				
			||||||
    default
 | 
					    default
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    summary "Generate module documentation."
 | 
				
			||||||
 | 
					    arguments "[manifest_file.pp ...]"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    when_invoked do |*args|
 | 
					    when_invoked do |*args|
 | 
				
			||||||
      unless Puppet.features.yard?
 | 
					      unless Puppet.features.yard?
 | 
				
			||||||
        raise RuntimeError, "The 'yard' gem must be installed in order to use this face."
 | 
					        raise RuntimeError, "The 'yard' gem must be installed in order to use this face."
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue