Server IP : 111.118.215.189 / Your IP : 52.15.60.240 Web Server : Apache System : Linux md-in-83.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : a1673wkz ( 2475) PHP Version : 8.2.25 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /usr/share/ruby/vendor_ruby/puppet/file_serving/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
require 'puppet/file_serving' # This module is used to pick the appropriate terminus # in file-serving indirections. This is necessary because # the terminus varies based on the URI asked for. module Puppet::FileServing::TerminusSelector def select(request) # We rely on the request's parsing of the URI. # Short-circuit to :file if it's a fully-qualified path or specifies a 'file' protocol. if Puppet::Util.absolute_path?(request.key) return :file end case request.protocol when "file" :file when "puppet" if request.server :rest else Puppet[:default_file_terminus] end when nil :file_server else raise ArgumentError, "URI protocol '#{request.protocol}' is not currently supported for file serving" end end end