Method: Puppet::FileServing::Mount::Plugins#find

Defined in:
lib/puppet/file_serving/mount/plugins.rb

#find(relative_path, request) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Return an instance of the appropriate class.



8
9
10
11
12
13
14
15
# File 'lib/puppet/file_serving/mount/plugins.rb', line 8

def find(relative_path, request)
  mod = request.environment.modules.find { |m|  m.plugin(relative_path) }
  return nil unless mod

  path = mod.plugin(relative_path)

  path
end