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

Version Path
facter-3.12.2.cfacter.20181217 ext/facter/facter/lib/docs/template.erb
facter-3.12.1.cfacter.20181031 ext/facter/facter/lib/docs/template.erb
facter-3.11.6.cfacter.20181031 ext/facter/facter/lib/docs/template.erb
facter-3.12.1.cfacter.20181023 ext/facter/facter/lib/docs/template.erb
facter-3.11.5.cfacter.20181022 ext/facter/facter/lib/docs/template.erb
facter-3.12.0.cfacter.20181004 ext/facter/facter/lib/docs/template.erb
facter-3.12.0.cfacter.20181001 ext/facter/facter/lib/docs/template.erb
facter-3.12.0.cfacter.20180918 ext/facter/facter/lib/docs/template.erb
facter-3.11.4.cfacter.20180821 ext/facter/facter/lib/docs/template.erb
facter-3.11.3.cfacter.20180716 ext/facter/facter/lib/docs/template.erb
facter-3.11.2.cfacter.20180612 ext/facter/facter/lib/docs/template.erb
facter-3.9.6.cfacter.20180612 ext/facter/facter/lib/docs/template.erb
facter-3.11.2.cfacter.20180606 ext/facter/facter/lib/docs/template.erb
facter-3.9.6.cfacter.20180606 ext/facter/facter/lib/docs/template.erb
facter-3.11.0.cfacter.20180319 ext/facter/facter/lib/docs/template.erb
cfacter-3.11.0.rc.20180314 ext/facter/facter/lib/docs/template.erb