Method: Puppet::Indirector::FileServer#find
- Defined in:
- lib/puppet/indirector/file_server.rb
#find(request) ⇒ Object
Find our key using the fileserver.
25 26 27 28 29 30 31 32 33 34 35 36 |
# File 'lib/puppet/indirector/file_server.rb', line 25 def find(request) mount, relative_path = configuration.split_path(request) return nil unless mount # The mount checks to see if the file exists, and returns nil # if not. path = mount.find(relative_path, request) return nil unless path path2instance(request, path) end |