summaryrefslogtreecommitdiffstats
path: root/lib/puppet/util/autoload/file_cache.rb
diff options
context:
space:
mode:
authorJesse Wolfe <jes5199@gmail.com>2010-05-22 17:58:44 -0700
committertest branch <puppet-dev@googlegroups.com>2010-02-17 06:50:53 -0800
commit2a73b5d194a5237722840844588a03addedf2d4c (patch)
tree6a65357dfb01f961d07791edd486af15686c0133 /lib/puppet/util/autoload/file_cache.rb
parent7952af5b80331f60d9f3703e63285fc7fb733a8c (diff)
downloadpuppet-2a73b5d194a5237722840844588a03addedf2d4c.tar.gz
puppet-2a73b5d194a5237722840844588a03addedf2d4c.tar.xz
puppet-2a73b5d194a5237722840844588a03addedf2d4c.zip
[#3674] Part 2: Autoloader load method should propagate failures
Change Autoloader's load to re-raise exceptions that happen when trying to load files, rather than just warning. This version still does not raise an error if the file is not found, as doing so would change the behavior of 'load' pretty significantly, but I am ambivalent this.
Diffstat (limited to 'lib/puppet/util/autoload/file_cache.rb')
-rw-r--r--lib/puppet/util/autoload/file_cache.rb14
1 files changed, 0 insertions, 14 deletions
diff --git a/lib/puppet/util/autoload/file_cache.rb b/lib/puppet/util/autoload/file_cache.rb
index 4ad0c7f39..881e08637 100644
--- a/lib/puppet/util/autoload/file_cache.rb
+++ b/lib/puppet/util/autoload/file_cache.rb
@@ -73,20 +73,6 @@ module Puppet::Util::Autoload::FileCache
missing_files[path] = Time.now
end
- def named_file_missing?(name)
- @named_files ||= {}
- if time = @named_files[name] and ! data_expired?(time)
- return true
- end
- false
- end
-
- def named_file_is_missing(name)
- @named_files ||= {}
- @named_files[name] = Time.now
- false
- end
-
private
def cached_data?(path, type = nil)