class Puppet::FileServing::Mount::Locales

Find files in the modules' locales directories. This is a very strange mount because it merges many directories into one.

Public Instance Methods

find(relative_path, request) click to toggle source

Return an instance of the appropriate class.

   # File lib/puppet/file_serving/mount/locales.rb
 9 def find(relative_path, request)
10   mod = request.environment.modules.find { |m|  m.locale(relative_path) }
11   return nil unless mod
12 
13   path = mod.locale(relative_path)
14 
15   path
16 end
valid?() click to toggle source
   # File lib/puppet/file_serving/mount/locales.rb
33 def valid?
34   true
35 end