class Generators::HTMLPuppetModule
Public Class Methods
new(context, html_file, prefix, options)
click to toggle source
Calls superclass method
# File lib/puppet/util/rdoc/generators/puppet_generator.rb 652 def initialize(context, html_file, prefix, options) 653 super(context, html_file, prefix, options) 654 end
Public Instance Methods
build_facts_summary_list()
click to toggle source
# File lib/puppet/util/rdoc/generators/puppet_generator.rb 687 def build_facts_summary_list 688 potentially_referenced_list(context.facts) {|fn| ["PLUGIN(#{fn})"] } 689 end
build_nodes_list(level, context)
click to toggle source
# File lib/puppet/util/rdoc/generators/puppet_generator.rb 671 def build_nodes_list(level, context) 672 res = "" 673 prefix = " ::" * level; 674 675 context.nodes.sort.each do |node| 676 if node.document_self 677 res << 678 prefix << 679 "Node " << 680 href(url(node.viewer.path), "link", node.full_name) << 681 "<br />\n" 682 end 683 end 684 res 685 end
build_plugins_summary_list()
click to toggle source
# File lib/puppet/util/rdoc/generators/puppet_generator.rb 691 def build_plugins_summary_list 692 potentially_referenced_list(context.plugins) {|fn| ["PLUGIN(#{fn})"] } 693 end
facts()
click to toggle source
# File lib/puppet/util/rdoc/generators/puppet_generator.rb 695 def facts 696 @context.facts 697 end
plugins()
click to toggle source
# File lib/puppet/util/rdoc/generators/puppet_generator.rb 699 def plugins 700 @context.plugins 701 end
value_hash()
click to toggle source
Calls superclass method
# File lib/puppet/util/rdoc/generators/puppet_generator.rb 656 def value_hash 657 @values = super 658 659 fl = build_facts_summary_list 660 @values["facts"] = fl unless fl.empty? 661 662 pl = build_plugins_summary_list 663 @values["plugins"] = pl unless pl.empty? 664 665 nl = build_nodes_list(0, @context) 666 @values["nodelist"] = nl unless nl.empty? 667 668 @values 669 end