Sha256: d58a92f321d8dccc6b9cef020566179ec758b0999cf16e8ba3e85bd9651c72a5
Contents?: true
Size: 571 Bytes
Versions: 20
Compression:
Stored size: 571 Bytes
Contents
# frozen_string_literal: true require 'puppet/file_serving/mount' class Puppet::FileServing::Mount::Scripts < Puppet::FileServing::Mount # Return an instance of the appropriate class. def find(path, request) raise _("No module specified") if path.to_s.empty? module_name, relative_path = path.split("/", 2) mod = request.environment.module(module_name) return nil unless mod mod.script(relative_path) end def search(path, request) result = find(path, request) if result [result] end end def valid? true end end
Version data entries
20 entries across 20 versions & 1 rubygems