diff options
author | James Turnbull <james@lovedthanlost.net> | 2009-02-26 01:37:17 +1100 |
---|---|---|
committer | James Turnbull <james@lovedthanlost.net> | 2009-02-26 01:37:17 +1100 |
commit | e40aea3c655e698d26c29370227b52c489e6db2b (patch) | |
tree | 00d8322c4a1d38730c5744c5be2b1c51c93a498f /lib/puppet | |
parent | ed5562aae444b81deabf9217be98886535620c76 (diff) | |
download | puppet-e40aea3c655e698d26c29370227b52c489e6db2b.tar.gz puppet-e40aea3c655e698d26c29370227b52c489e6db2b.tar.xz puppet-e40aea3c655e698d26c29370227b52c489e6db2b.zip |
Fixed metaparameter reference to return str
Diffstat (limited to 'lib/puppet')
-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 |