Sha256: 8dca54d4fb87f7cbd1c560c67687342d6593fca12027d5519a70f573d553d22f
Contents?: true
Size: 622 Bytes
Versions: 40
Compression:
Stored size: 622 Bytes
Contents
#!/usr/bin/env ruby Dir.chdir(File.dirname(__FILE__)) require "../autoload" print "Listing all mounts.\n" mounts = Knj::Mount.list mounts.each do |mount| Php4r.print_r(mount.data) print "Access: #{mount.access?}\n\n" end mounts = Knj::Mount.list("from_search" => "test_dir") mounts.each do |mount| print "Unmounting test_dir.\n" mount.umount end print "Mount binding test_dir to test_dir_to.\n" Knj::Mount.mount( "from" => "test_dir", "to" => "test_dir_to", "bind" => true ) mounts = Knj::Mount.list("from_search" => "test_dir") mounts.each do |mount| print "Unmounting test_dir.\n" mount.umount end
Version data entries
40 entries across 40 versions & 1 rubygems