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