# File lib/chef/file_cache.rb, line 102 def load(path, read=true) validate( { :path => path }, { :path => { :kind_of => String } } ) cache_path = create_cache_path(path, false) raise Chef::Exceptions::FileNotFound, "Cannot find #{cache_path} for #{path}!" unless File.exists?(cache_path) if read File.read(cache_path) else cache_path end end