summaryrefslogtreecommitdiffstats
path: root/lib/puppet/application/puppetdoc.rb
Commit message (Collapse)AuthorAgeFilesLines
* Renaming applications, mostly removing 'puppet'Luke Kanies2010-02-171-224/+0
| | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* Fix #2783, take2 - puppetdoc should use environment to get ↵Brice Figureau2009-11-271-1/+1
| | | | | | | | | | | | | | modulepath/manifestdir I was told that setting manifestdir in environment is not supported. Only the manifest setting seems to be supported in environments. This patch changes how puppetdoc handles manifestdir, instead of getting it through the manifestdir variable, we now get the manifest settings and infer the directory from this, exactly as the parser is doing. This allows puppetdoc to handle what user are doing with environments. Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
* Possible workaround for #2824 (MRI GC bug)Markus Roberts2009-11-191-1/+1
| | | | | | | | | | | | | | | | | | | This is a moderately ugly workaround for the MRI garbage collection bug (see the ticket for details). I explored several other potential solutions (notably, monkey patching the routines that trigger the bug) but none of them were satisfactory. Monkey patching sub, gsub, sub!, gsub!, etc., for example, either changes the scoping of $~, $1, etc. in a way that could potentially subtly change the meaning of programs or (if you are clever) faithfully reproduces the behaviour of MRI--including the memory leak. I decided to go with the standardized and somewhat obnoxious never- used optional argument as it was easy to automatically insert and should be even easier to automatically find and remove if a better fix is developed. It also should be obtrusive enough to escape accidental removal in refactoring.
* Fix #2783 - Puppetdoc rdoc should use environment to get modulepath/manifestdirBrice Figureau2009-11-151-2/+3
| | | | | | | Puppetdoc wasn't using the current environment to find the correct modulepath and manifestdir. Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
* Fixed #2702 - Set :outputdir to "doc" if not specifiedJohn A. Barbuto2009-10-101-0/+1
| | | | Signed-off-by: John A. Barbuto <jbarbuto@corp.sourceforge.com>
* Added Markdown mode to puppetdoc to output Markdown.James Turnbull2009-07-101-3/+27
| | | | Requires the pandoc binary to function (http://johnmacfarlane.net/pandoc/).
* Move puppetdoc to the Application Controller paradigmBrice Figureau2009-02-161-0/+198
Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>