Issue #3376 has been updated by Alan Harder.

This problem still exists in 2.6.0.
#2364 has also resurfaced (I reopened that issue), so "sub2" in the test case 
above again doesn't generate its puppetdoc.
----------------------------------------
Bug #3376: No puppetdoc for subclass preceded by if block
http://projects.puppetlabs.com/issues/3376

Author: Alan Harder
Status: Investigating
Priority: Normal
Assigned to: Brice Figureau
Category: documentation
Target version: 
Affected version: 0.25.4
Keywords: puppetdoc
Branch: 


This is a followup to #2364.  (I did actually mention this case at the bottom 
of #2364 description, but it seems only the primary case there with a test case 
was fixed)

Using 0.25.4 on Solaris 10.
Consider this modules/test/manifests/init.pp:
<pre>
# Test class
class test {

    # Subclass right at start
    class sub1 {
    }

    $test = 'foo'

    # Subclass following a variable assignment
    class sub2 {
    }

    if $hoho { $blah = 'foo' }

    # Subclass following an if block
    class sub3 {
    }

    notify { 'foo': }

    # Subclass following a resource
    class sub4 {
    }

    # Subclass following another subclass
    class sub5 {
    }
}

puppetdoc (rdoc mode) gets the subclass descriptions for all the above 
subclasses except sub3, the one preceded by an if block.



-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to