summaryrefslogtreecommitdiffstats
path: root/lib/puppet/reference/function.rb
diff options
context:
space:
mode:
authorDaniel Pittman <daniel@rimspace.net>2008-07-18 15:21:57 +1000
committerJames Turnbull <james@lovedthanlost.net>2008-08-01 08:54:05 +1000
commit03c76deb60927375e9b35c74a903130930ffddf2 (patch)
tree33c4868c98f7ed11039e1549bdccf8fc52a6e1f4 /lib/puppet/reference/function.rb
parent13069eca1a3e2b08f5201462021d83e2e0a81018 (diff)
downloadpuppet-03c76deb60927375e9b35c74a903130930ffddf2.tar.gz
puppet-03c76deb60927375e9b35c74a903130930ffddf2.tar.xz
puppet-03c76deb60927375e9b35c74a903130930ffddf2.zip
Expose all puppet variables as instance member variables of the template wrapper.
This helps resolve redmine #1427, by providing a safe mechanism to access variables. * Implement Puppet::Parser::Scope#to_hash, which returns a hash containing all the variable bindings in the current and, optionally, parent scope. * Use that to set instance member variables into Puppet::Parser::Templatewrapper * Report the time taken for variable binding at debug level, to help identify any performance regression that is encountered in the real world. * Rename the @scope and @file members of the template wrapper, to avoid clashing with a scope variable exposed within puppet. Signed-off-by: Daniel Pittman <daniel@rimspace.net> (cherry picked from commit ba220b41e4f509f2632e2664d332e49b20a70ea7)
Diffstat (limited to 'lib/puppet/reference/function.rb')
0 files changed, 0 insertions, 0 deletions