Sha256: e7b643e35a0a815abef6f694fb19eedf5ae308c0bf937795b3b01e6b3c4df012
Contents?: true
Size: 625 Bytes
Versions: 61
Compression:
Stored size: 625 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| Knj::Php.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
61 entries across 61 versions & 1 rubygems