diff options
| author | Luke Kanies <luke@madstop.com> | 2008-10-18 00:17:24 +0200 |
|---|---|---|
| committer | Luke Kanies <luke@madstop.com> | 2008-10-18 00:17:24 +0200 |
| commit | fe789798cc0ccdc54b3a28d48bf206c9fc187085 (patch) | |
| tree | 24bbe35f647f2622b42397a52cc66177c59597b8 /lib/puppet/parser | |
| parent | 9ef6209b3ed1269f7cd1e6a8d0f189f6b5712800 (diff) | |
| parent | a74ec60d33dee1c592ec858faeccc23d7a7b79f3 (diff) | |
| download | puppet-fe789798cc0ccdc54b3a28d48bf206c9fc187085.tar.gz puppet-fe789798cc0ccdc54b3a28d48bf206c9fc187085.tar.xz puppet-fe789798cc0ccdc54b3a28d48bf206c9fc187085.zip | |
Merge branch '0.24.x' of git://github.com/jamtur01/puppet into 0.24.x
Diffstat (limited to 'lib/puppet/parser')
| -rw-r--r-- | lib/puppet/parser/templatewrapper.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/puppet/parser/templatewrapper.rb b/lib/puppet/parser/templatewrapper.rb index 3b74e62d4..fc716b0fd 100644 --- a/lib/puppet/parser/templatewrapper.rb +++ b/lib/puppet/parser/templatewrapper.rb @@ -37,6 +37,16 @@ class Puppet::Parser::TemplateWrapper end end + # Allow templates to access the defined classes + def classes + return scope.catalog.classes + end + + # Allow templates to access the defined tags + def tags + return scope.catalog.tags + end + # Ruby treats variables like methods, so we used to expose variables # within scope to the ERB code via method_missing. As per RedMine #1427, # though, this means that conflicts between methods in our inheritance |
