Method: NFS::Handler#initialize
- Defined in:
- lib/nfs/handler.rb
#initialize(root = nil, fsid = 0) ⇒ Handler
Returns a new instance of Handler.
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/nfs/handler.rb', line 3 def initialize(root = nil, fsid = 0) @mount_prog = Mount::MOUNTPROG.dup @mount_vers = Mount::MOUNTVERS @nfs_prog = NFS::NFS_PROGRAM.dup @nfs_vers = NFS::NFS_VERSION @exports = {} @fh_table = {} @file_objects = {} @next_fh = Filehandle.new @fsid = fsid if !root.nil? export('/', root) end define_mount_procedures define_nfs_procedures instance_eval(&block) if block_given? end |