Sha256: 73170dac262497648c91d894e870d1a3015c3417f1f19e7e1d2c27b626509398

Contents?: true

Size: 882 Bytes

Versions: 39

Compression:

Stored size: 882 Bytes

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['details'] -%>
**Details:**

<%= schema['details'] %>
<% end -%>
<% end -%>

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
facter-4.10.0 lib/docs/template.erb
facter-4.9.0 lib/docs/template.erb
facter-4.8.0 lib/docs/template.erb
facter-4.7.1 lib/docs/template.erb
facter-4.7.0 lib/docs/template.erb
facter-4.6.1 lib/docs/template.erb
facter-4.6.0 lib/docs/template.erb
facter-4.5.2 lib/docs/template.erb
facter-4.5.1 lib/docs/template.erb
facter-4.5.0 lib/docs/template.erb
facter-4.4.3 lib/docs/template.erb
facter-4.4.2 lib/docs/template.erb
facter-4.4.1 lib/docs/template.erb
facter-4.4.0 lib/docs/template.erb
facter-4.3.1 lib/docs/template.erb
facter-4.3.0 lib/docs/template.erb
facter-4.2.14 lib/docs/template.erb
facter-4.2.13 lib/docs/template.erb
facter-4.2.12 lib/docs/template.erb
facter-4.2.11 lib/docs/template.erb