-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Hello,

at the moment I fight with puppetdoc and end in a ruby confusion.

To the problem:
> puppetdoc --debug --trace --mode rdoc --all manifests/site.pp
info: scanning: ["manifests/site.pp"]
/usr/lib/ruby/1.8/puppet/util/rdoc.rb:82:in `output_resource_doc'
/usr/lib/ruby/1.8/puppet/util/rdoc.rb:82:in `sort'
/usr/lib/ruby/1.8/puppet/util/rdoc.rb:82:in `output_resource_doc'
/usr/lib/ruby/1.8/puppet/util/rdoc.rb:77:in `output_astnode_doc'
/usr/lib/ruby/1.8/puppet/util/rdoc.rb:67:in `output'
/usr/lib/ruby/1.8/puppet/util/rdoc.rb:66:in `each'
/usr/lib/ruby/1.8/puppet/util/rdoc.rb:66:in `output'
/usr/lib/ruby/1.8/puppet/util/rdoc.rb:47:in `manifestdoc'
/usr/lib/ruby/1.8/puppet/util/rdoc.rb:43:in `each'
/usr/lib/ruby/1.8/puppet/util/rdoc.rb:43:in `manifestdoc'
/usr/lib/ruby/1.8/puppet/application/doc.rb:82:in `rdoc'
/usr/lib/ruby/1.8/puppet/application/doc.rb:59:in `send'
/usr/lib/ruby/1.8/puppet/application/doc.rb:59:in `run_command'
/usr/lib/ruby/1.8/puppet/application.rb:287:in `run'
/usr/lib/ruby/1.8/puppet/application.rb:393:in `exit_on_fail'
/usr/lib/ruby/1.8/puppet/application.rb:287:in `run'
/usr/bin/puppetdoc:4
Could not generate documentation: undefined method `<=>' for nil:NilClass

The used version is Puppet 2.6.2 on a debian system.

If I look to the code I find the following line:
   code.sort { |a,b| a.line <=> b.line }.each do |stmt|

If I output the code with puts I get the following:
   []
   []
   #<Puppet::Parser::AST::ResourceDefaults:0x7f1d0b836290>
   #<Puppet::Parser::AST::ResourceDefaults:0x7f1d0b82fa30>
   [Filebucket[local]]

I think there is something wrong but I do not know what.

Anybody an idea?

Regards
   Klaus
- -- 
Klaus Ethgen                            http://www.ethgen.de/
pub  2048R/D1A4EDE5 2000-02-26 Klaus Ethgen <kl...@ethgen.de>
Fingerprint: D7 67 71 C4 99 A6 D4 FE  EA 40 30 57 3C 88 26 2B
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iQEVAwUBTMbnup+OKpjRpO3lAQp/8Af+JxugG9hPUWfayZLMDx5lziL78FMUjmHM
5OOnIN65lc8ME3fG7FzBIqMI+Q1UT9sVTgxANqA5FxP5kE9ObqPTpWfx7RHO4Rhv
MjUxM1q793caDOQHlUOZGS0bNy7n0bGLbXkH2acIIdgZjnPklI6+8zhbqIWlnxMo
suQrmc4YYygHIdN6llk+STwH6sEwcjXhKdvOLN+VMnSpQdcFo1IRMoS5bBHHx9cG
KAJ6m8qrKLHY/Zeqa00EIweN/Tf5+0HnP7izoVpjwzU6aOBAgWAGylJdjCKhyiFb
fTt+cXv1HaBZaVNeQ7GWU8I10Oc5q4sJPywE7Za7gnhcc/x/niYmCg==
=DDVX
-----END PGP SIGNATURE-----

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to