# File lib/puppet/indirector/file.rb, line 23
23:     def find(request)
24:         if respond_to?(:path)
25:             path = path(request.key)
26:         else
27:             path = request.key
28:         end
29: 
30:         return nil unless File.exist?(path)
31: 
32:         begin
33:             content = File.read(path)
34:         rescue => detail
35:             raise Puppet::Error, "Could not retrieve path %s: %s" % [path, detail]
36:         end
37: 
38:         return model.new(content)
39:     end