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

Version Path
knjrbfw-0.0.116 lib/knj/tests/test_mount.rb
knjrbfw-0.0.115 lib/knj/tests/test_mount.rb
knjrbfw-0.0.114 lib/knj/tests/test_mount.rb
knjrbfw-0.0.113 lib/knj/tests/test_mount.rb
knjrbfw-0.0.111 lib/knj/tests/test_mount.rb
knjrbfw-0.0.110 lib/knj/tests/test_mount.rb
knjrbfw-0.0.109 lib/knj/tests/test_mount.rb
knjrbfw-0.0.108 lib/knj/tests/test_mount.rb
knjrbfw-0.0.107 lib/knj/tests/test_mount.rb
knjrbfw-0.0.105 lib/knj/tests/test_mount.rb
knjrbfw-0.0.104 lib/knj/tests/test_mount.rb
knjrbfw-0.0.103 lib/knj/tests/test_mount.rb
knjrbfw-0.0.102 lib/knj/tests/test_mount.rb
knjrbfw-0.0.101 lib/knj/tests/test_mount.rb
knjrbfw-0.0.100 lib/knj/tests/test_mount.rb
knjrbfw-0.0.99 lib/knj/tests/test_mount.rb
knjrbfw-0.0.98 lib/knj/tests/test_mount.rb
knjrbfw-0.0.97 lib/knj/tests/test_mount.rb
knjrbfw-0.0.96 lib/knj/tests/test_mount.rb
knjrbfw-0.0.95 lib/knj/tests/test_mount.rb