summaryrefslogtreecommitdiffstats
path: root/lib/puppet
diff options
context:
space:
mode:
authorJames Turnbull <james@lovedthanlost.net>2009-02-26 01:37:17 +1100
committerJames Turnbull <james@lovedthanlost.net>2009-02-26 01:37:17 +1100
commite40aea3c655e698d26c29370227b52c489e6db2b (patch)
tree00d8322c4a1d38730c5744c5be2b1c51c93a498f /lib/puppet
parented5562aae444b81deabf9217be98886535620c76 (diff)
downloadpuppet-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.rb12
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