summaryrefslogtreecommitdiffstats
path: root/spec/fixtures/unit
diff options
context:
space:
mode:
authorMatt Robinson <matt@puppetlabs.com>2011-03-07 16:48:09 -0800
committerMax Martin <max@puppetlabs.com>2011-03-08 13:16:34 -0800
commit28ce355be0a16caa8e1cc0b6f531d2be070ca6f2 (patch)
treefcca8a27d1af4d596c2384c649159d823f283647 /spec/fixtures/unit
parent75af5827b68774d0300499fab969239bb8ae6d30 (diff)
downloadpuppet-28ce355be0a16caa8e1cc0b6f531d2be070ca6f2.tar.gz
puppet-28ce355be0a16caa8e1cc0b6f531d2be070ca6f2.tar.xz
puppet-28ce355be0a16caa8e1cc0b6f531d2be070ca6f2.zip
maint: Fix rdoc when documenting manifest files
The structure of the AST has changed from 2.6.x to master, so the code to generate documentation from the AST had to change. Generating documentation for resources other than classes, nodes and defines is still broken, see ticket #6634 Paired-with: Daniel Pittman <daniel@puppetlabs.com>
Diffstat (limited to 'spec/fixtures/unit')
-rw-r--r--spec/fixtures/unit/util/rdoc/basic.pp16
1 files changed, 16 insertions, 0 deletions
diff --git a/spec/fixtures/unit/util/rdoc/basic.pp b/spec/fixtures/unit/util/rdoc/basic.pp
new file mode 100644
index 000000000..5616503c1
--- /dev/null
+++ b/spec/fixtures/unit/util/rdoc/basic.pp
@@ -0,0 +1,16 @@
+# im a class
+class foo {
+ file { '/tmp/foo' :
+ ensure => present,
+ }
+}
+
+# im a node
+node gar {
+}
+
+# im a define
+define baz { }
+
+# im a resource
+host { 'cow' : }