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