summaryrefslogtreecommitdiffstats
path: root/lib/puppet/node
diff options
context:
space:
mode:
authorNick Lewis <nick@puppetlabs.com>2011-07-21 20:21:41 -0700
committerNick Lewis <nick@puppetlabs.com>2011-07-21 20:21:41 -0700
commitc5d70ed11f8f964523ca049d6c3d504de3840c1a (patch)
tree6f1872676315dde67aa865d5d177e18bdcf6e4a3 /lib/puppet/node
parent9c78759af57967d64eceeeb704a6673b81a76f30 (diff)
parentd198fedf65e472b384666fc9ae3bef487852068a (diff)
downloadpuppet-c5d70ed11f8f964523ca049d6c3d504de3840c1a.tar.gz
puppet-c5d70ed11f8f964523ca049d6c3d504de3840c1a.tar.xz
puppet-c5d70ed11f8f964523ca049d6c3d504de3840c1a.zip
Merge branch 'remove-cacher'
Diffstat (limited to 'lib/puppet/node')
-rw-r--r--lib/puppet/node/environment.rb10
1 files changed, 2 insertions, 8 deletions
diff --git a/lib/puppet/node/environment.rb b/lib/puppet/node/environment.rb
index 96fdc3c1e..f25bb65a9 100644
--- a/lib/puppet/node/environment.rb
+++ b/lib/puppet/node/environment.rb
@@ -95,7 +95,7 @@ class Puppet::Node::Environment
# Cache the modulepath, so that we aren't searching through
# all known directories all the time.
- cached_attr(:modulepath, :ttl => Puppet[:filetimeout]) do
+ cached_attr(:modulepath, Puppet[:filetimeout]) do
dirs = self[:modulepath].split(File::PATH_SEPARATOR)
dirs = ENV["PUPPETLIB"].split(File::PATH_SEPARATOR) + dirs if ENV["PUPPETLIB"]
validate_dirs(dirs)
@@ -103,7 +103,7 @@ class Puppet::Node::Environment
# Return all modules from this environment.
# Cache the list, because it can be expensive to create.
- cached_attr(:modules, :ttl => Puppet[:filetimeout]) do
+ cached_attr(:modules, Puppet[:filetimeout]) do
module_names = modulepath.collect { |path| Dir.entries(path) }.flatten.uniq
module_names.collect do |path|
begin
@@ -114,12 +114,6 @@ class Puppet::Node::Environment
end.compact
end
- # Cache the manifestdir, so that we aren't searching through
- # all known directories all the time.
- cached_attr(:manifestdir, :ttl => Puppet[:filetimeout]) do
- validate_dirs(self[:manifestdir].split(File::PATH_SEPARATOR))
- end
-
def to_s
name.to_s
end