diff options
author | Brice Figureau <brice-puppet@daysofwonder.com> | 2009-12-28 16:47:57 +0100 |
---|---|---|
committer | James Turnbull <james@lovedthanlost.net> | 2010-01-18 23:19:27 +1100 |
commit | d31ff7ebee14f79b523c3fe4c974d4e6add47a2d (patch) | |
tree | f1d69605da24925099e8b8a940cec703f77263ae /lib/puppet/util/rdoc/parser.rb | |
parent | a9fb82b0026e75a670fec553b17de3b0f091c2a5 (diff) | |
download | puppet-d31ff7ebee14f79b523c3fe4c974d4e6add47a2d.tar.gz puppet-d31ff7ebee14f79b523c3fe4c974d4e6add47a2d.tar.xz puppet-d31ff7ebee14f79b523c3fe4c974d4e6add47a2d.zip |
Adapt to method name change since 8971d8
When the definition/hostclass/node AST types were removed, the
parentclass method was renamed to 'parent'.
This patch fixes the incorrect rdoc usage (and some deeper
integration test so that it won't happen again).
Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
Diffstat (limited to 'lib/puppet/util/rdoc/parser.rb')
-rw-r--r-- | lib/puppet/util/rdoc/parser.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/puppet/util/rdoc/parser.rb b/lib/puppet/util/rdoc/parser.rb index 4d0ac484f..9a2bef932 100644 --- a/lib/puppet/util/rdoc/parser.rb +++ b/lib/puppet/util/rdoc/parser.rb @@ -236,7 +236,7 @@ class Parser Puppet.debug "rdoc: found new class %s" % name container, name = get_class_or_module(container, name) - superclass = klass.parentclass + superclass = klass.parent superclass = "" if superclass.nil? or superclass.empty? @stats.num_classes += 1 @@ -266,7 +266,7 @@ class Parser # create documentation for a node def document_node(name, node, container) Puppet.debug "rdoc: found new node %s" % name - superclass = node.parentclass + superclass = node.parent superclass = "" if superclass.nil? or superclass.empty? comment = node.doc @@ -294,7 +294,7 @@ class Parser # find superclas if any @stats.num_methods += 1 - # find the parentclass + # find the parent # split define name by :: to find the complete module hierarchy container, name = get_class_or_module(container,name) |