Sha256: 86a566c9015441f83612f07d3caf169bad3fdd8d9688f975363d3b74f749706b

Contents?: true

Size: 1.03 KB

Versions: 17

Compression:

Stored size: 1.03 KB

Contents

metaparameter = Puppet::Util::Reference.newreference :metaparameter, :doc => "All Puppet metaparameters and all their details" do
  types = {}
  Puppet::Type.loadall

  Puppet::Type.eachtype { |type|
    next if type.name == :puppet
    next if type.name == :component
    types[type.name] = type
  }

  str = %{

# Metaparameters
    
Metaparameters are parameters that work with any resource type; they are part of the 
Puppet framework itself rather than being part of the implementation of any
given instance.  Thus, any defined metaparameter can be used with any instance
in your manifest, including defined components.

## Available Metaparameters

}
  begin
    params = []
    Puppet::Type.eachmetaparam { |param|
      params << param
    }

    params.sort { |a,b|
      a.to_s <=> b.to_s
    }.each { |param|
      str << markdown_header(param.to_s, 3)
      str << scrub(Puppet::Type.metaparamdoc(param))
      str << "\n\n"
    }
  rescue => detail
    Puppet.log_exception(detail, "incorrect metaparams: #{detail}")
    exit(1)
  end

  str
end

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
librarian-puppet-0.9.9 vendor/gems/ruby/1.9.1/gems/puppet-3.1.0/lib/puppet/reference/metaparameter.rb
puppet-3.1.1 lib/puppet/reference/metaparameter.rb
librarian-puppet-0.9.8 vendor/gems/ruby/1.9.1/gems/puppet-3.1.0/lib/puppet/reference/metaparameter.rb
puppet-3.1.0 lib/puppet/reference/metaparameter.rb
puppet-3.1.0.rc2 lib/puppet/reference/metaparameter.rb
puppet-3.1.0.rc1 lib/puppet/reference/metaparameter.rb
puppet-3.0.2 lib/puppet/reference/metaparameter.rb
puppet-3.0.2.rc3 lib/puppet/reference/metaparameter.rb
puppet-3.0.2.rc2 lib/puppet/reference/metaparameter.rb
puppet-3.0.2.rc1 lib/puppet/reference/metaparameter.rb
puppet-3.0.1 lib/puppet/reference/metaparameter.rb
puppet-3.0.1.rc1 lib/puppet/reference/metaparameter.rb
puppet-3.0.0 lib/puppet/reference/metaparameter.rb
puppet-3.0.0.rc8 lib/puppet/reference/metaparameter.rb
puppet-3.0.0.rc7 lib/puppet/reference/metaparameter.rb
puppet-3.0.0.rc5 lib/puppet/reference/metaparameter.rb
puppet-3.0.0.rc4 lib/puppet/reference/metaparameter.rb