diff options
| author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-05-10 16:10:48 +0000 |
|---|---|---|
| committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-05-10 16:10:48 +0000 |
| commit | a2a4dd5459efc7cee5c373873ff6a7b2c5c5eff4 (patch) | |
| tree | c65472ac28c67545864d6dd7b5e7b84b8316f13f /bin/puppetdoc | |
| parent | 710bf0dd8be6391c0cbb2885169677671ebfd351 (diff) | |
Updating doc system to add the list of valid values to the doc string, and tweaking a few docs.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1183 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'bin/puppetdoc')
| -rwxr-xr-x | bin/puppetdoc | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/bin/puppetdoc b/bin/puppetdoc index b8e6619cd..314d4078b 100755 --- a/bin/puppetdoc +++ b/bin/puppetdoc @@ -99,7 +99,12 @@ def scrub(text) # indent from every line. if text =~ /^(\s+)/ indent = $1 - return text.gsub(/^#{indent}/,'') + begin + return text.gsub(/^#{indent}/,'') + rescue => detail + puts detail.backtrace + puts detail + end else return text end @@ -141,7 +146,12 @@ argument is approprite or not. }.each do |name, object| puts "* **#{name.to_s}** (*#{object.section.to_s}*)" puts "" - puts " " + object.desc.gsub(/\n/, " ") + begin + puts " " + object.desc.gsub(/\n/, " ") + rescue => detail + puts detail.backtrace + puts detail + end puts "" end @@ -185,6 +195,7 @@ in your manifest, including defined components. puts indent(scrub(Puppet::Type.metaparamdoc(param)), $tab) } rescue => detail + puts detail.backtrace puts "incorrect metaparams: %s" % detail exit(1) end |
