summaryrefslogtreecommitdiffstats
path: root/lib/puppet/util/rdoc/code_objects.rb
diff options
context:
space:
mode:
authorPaul Berry <paul@puppetlabs.com>2010-10-08 15:26:28 -0700
committerMarkus Roberts <Markus@reality.com>2010-10-27 14:25:38 -0700
commit65ef24e5c1c33b7d42012891d368917fd6aaf68c (patch)
tree6ce4f48fafdb10a59a0626fe8afb54e39f135c73 /lib/puppet/util/rdoc/code_objects.rb
parent3b53bfcd0dd20a43c751b2b0d5dbb0e3463ef47b (diff)
downloadpuppet-65ef24e5c1c33b7d42012891d368917fd6aaf68c.tar.gz
puppet-65ef24e5c1c33b7d42012891d368917fd6aaf68c.tar.xz
puppet-65ef24e5c1c33b7d42012891d368917fd6aaf68c.zip
(#4534/#4778) -- Normalize parameterized classes
This is a reconciliation/melding of Paul's (#4534) Class inheritance with parameterized classes is no longer ignored and Markus's Fix for #4778 -- evaluate parameterized classes when they are instantiated Extracted the code from Resource::Type#mk_plain_resource that evaluates parents and tags the catalog, and moved that into a new method called instantiate_resource. Instantiate_resource is now also called from Parser::Ast::Resource#evaluate, so that the notation "class { classname: }" now executes this code too. Likewise adds class evaluation so that it behaves the same (with regard to lazy / strict evaluation) as include classname
Diffstat (limited to 'lib/puppet/util/rdoc/code_objects.rb')
0 files changed, 0 insertions, 0 deletions