diff options
Diffstat (limited to 'lib/puppet/reference/metaparameter.rb')
-rw-r--r-- | lib/puppet/reference/metaparameter.rb | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/lib/puppet/reference/metaparameter.rb b/lib/puppet/reference/metaparameter.rb index 6eb662ba7..45e5ea4e6 100644 --- a/lib/puppet/reference/metaparameter.rb +++ b/lib/puppet/reference/metaparameter.rb @@ -1,4 +1,12 @@ 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 @@ -34,5 +42,7 @@ Available Metaparameters puts detail.backtrace puts "incorrect metaparams: %s" % detail exit(1) - end + end + + str end |