# File lib/puppet/file_serving/mount/file.rb, line 18 18: def complete_path(relative_path, node) 19: full_path = path(node) 20: 21: raise ArgumentError.new("Mounts without paths are not usable") unless full_path 22: 23: # If there's no relative path name, then we're serving the mount itself. 24: return full_path unless relative_path 25: 26: file = ::File.join(full_path, relative_path) 27: 28: return nil unless FileTest.exist?(file) 29: 30: return file 31: end