# File lib/puppet/network/handler/fileserver.rb, line 159
159:         def mount(path, name)
160:             if @mounts.include?(name)
161:                 if @mounts[name] != path
162:                     raise FileServerError, "%s is already mounted at %s" %
163:                         [@mounts[name].path, name]
164:                 else
165:                     # it's already mounted; no problem
166:                     return
167:                 end
168:             end
169: 
170:             # Let the mounts do their own error-checking.
171:             @mounts[name] = Mount.new(name, path)
172:             @mounts[name].info "Mounted %s" % path
173: 
174:             return @mounts[name]
175:         end