class Puppet::FileServing::Mount::Modules

This is the modules-specific mount: it knows how to search through modules for files. Yay.

Public Instance Methods

find(path, request) click to toggle source

Return an instance of the appropriate class.

   # File lib/puppet/file_serving/mount/modules.rb
 8 def find(path, request)
 9   raise _("No module specified") if path.to_s.empty?
10   module_name, relative_path = path.split("/", 2)
11   mod = request.environment.module(module_name)
12   return nil unless mod
13 
14   mod.file(relative_path)
15 end
valid?() click to toggle source
   # File lib/puppet/file_serving/mount/modules.rb
24 def valid?
25   true
26 end