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

Version Path
knjrbfw-0.0.29 lib/knj/tests/test_mount.rb
knjrbfw-0.0.28 lib/knj/tests/test_mount.rb
knjrbfw-0.0.27 lib/knj/tests/test_mount.rb
knjrbfw-0.0.26 lib/knj/tests/test_mount.rb
knjrbfw-0.0.25 lib/knj/tests/test_mount.rb
knjrbfw-0.0.24 lib/knj/tests/test_mount.rb
knjrbfw-0.0.23 lib/knj/tests/test_mount.rb
knjrbfw-0.0.22 lib/knj/tests/test_mount.rb
knjrbfw-0.0.21 lib/knj/tests/test_mount.rb
knjrbfw-0.0.20 lib/knj/tests/test_mount.rb
knjrbfw-0.0.19 lib/knj/tests/test_mount.rb
knjrbfw-0.0.18 lib/knj/tests/test_mount.rb
knjrbfw-0.0.17 lib/knj/tests/test_mount.rb
knjrbfw-0.0.16 lib/knj/tests/test_mount.rb
knjrbfw-0.0.15 lib/knj/tests/test_mount.rb
knjrbfw-0.0.14 lib/knj/tests/test_mount.rb
knjrbfw-0.0.13 lib/knj/tests/test_mount.rb
knjrbfw-0.0.12 lib/knj/tests/test_mount.rb
knjrbfw-0.0.11 lib/knj/tests/test_mount.rb
knjrbfw-0.0.10 lib/knj/tests/test_mount.rb