# File lib/puppet/network/handler/fileserver.rb, line 150 150: def mount(path, name) 151: if @mounts.include?(name) 152: if @mounts[name] != path 153: raise FileServerError, "#{@mounts[name].path} is already mounted at #{name}" 154: else 155: # it's already mounted; no problem 156: return 157: end 158: end 159: 160: # Let the mounts do their own error-checking. 161: @mounts[name] = Mount.new(name, path) 162: @mounts[name].info "Mounted #{path}" 163: 164: @mounts[name] 165: end