summaryrefslogtreecommitdiffstats
path: root/lib/puppet/node
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2008-11-11 12:45:50 -0800
committerLuke Kanies <luke@madstop.com>2008-11-11 12:53:38 -0800
commitcd09d6b90d3365d06e8e706aab3edbd8f568f1c9 (patch)
tree1ebc569b688e17d70882415e897387c9d75b9213 /lib/puppet/node
parent14af971bc618d665f481142934b2f612d503823c (diff)
downloadpuppet-cd09d6b90d3365d06e8e706aab3edbd8f568f1c9.tar.gz
puppet-cd09d6b90d3365d06e8e706aab3edbd8f568f1c9.tar.xz
puppet-cd09d6b90d3365d06e8e706aab3edbd8f568f1c9.zip
Refactoring the Cacher interface to always require attribute declaration.
Previously you could dynamically use cached values, but the new interface requires a single static declaration of the attribute: cached_attr(:myattr) { my_init_code() } This is cleaner, because it makes it easy to turn the code into an init method and generally makes the whole thing easier to think about. Most of this commit is going through the different classes that already using the Caching engine. Signed-off-by: Luke Kanies <luke@madstop.com>
Diffstat (limited to 'lib/puppet/node')
0 files changed, 0 insertions, 0 deletions