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