Sha256: ff2b44d50b5dff8d6c524692c3c47e31110be3031187a058871d7e0b45dfd423
Contents?: true
Size: 1.08 KB
Versions: 16
Compression:
Stored size: 1.08 KB
Contents
<%# This template is used to generate a markdown file documenting facts. -%> <%# Run 'ruby generate.rb > facts.md' to generate the markdown file. -%> <% def format_fact_element(name, info, indent = '') subelements = (info['elements'] || {}).map{|n, i| format_fact_element(n, i, "#{indent} ")}.join('') "#{indent}* `#{name}` (#{info['type']}) --- #{info['description']}\n#{subelements}" end -%> <% facts.each do |name, schema| -%> ### `<%= name %>` <% if schema['hidden'] -%> This legacy fact is hidden by default in Facter's command-line output. <% end -%> **Type:** <%= schema['type'] %> **Purpose:** <%= schema['description'] %> <% if schema['elements'] -%> **Elements:** <%= schema['elements'].map{|name, info| format_fact_element(name, info)}.join('') %> <% end -%> <% if schema['resolution'] -%> **Resolution:** <%= schema['resolution'].split("\n").map { |line| "* " + line }.join("\n") %> <% end -%> <% if schema['caveats'] -%> **Caveats:** <%= schema['caveats'].split("\n").map { |line| "* " + line }.join("\n") %> <% end -%> ([↑ Back to top](#page-nav)) <% end -%>
Version data entries
16 entries across 16 versions & 2 rubygems