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.72 lib/knj/tests/test_mount.rb
knjrbfw-0.0.71 lib/knj/tests/test_mount.rb
knjrbfw-0.0.70 lib/knj/tests/test_mount.rb
knjrbfw-0.0.69 lib/knj/tests/test_mount.rb
knjrbfw-0.0.68 lib/knj/tests/test_mount.rb
knjrbfw-0.0.67 lib/knj/tests/test_mount.rb
knjrbfw-0.0.66 lib/knj/tests/test_mount.rb
knjrbfw-0.0.65 lib/knj/tests/test_mount.rb
knjrbfw-0.0.64 lib/knj/tests/test_mount.rb
knjrbfw-0.0.63 lib/knj/tests/test_mount.rb
knjrbfw-0.0.62 lib/knj/tests/test_mount.rb
knjrbfw-0.0.59 lib/knj/tests/test_mount.rb
knjrbfw-0.0.58 lib/knj/tests/test_mount.rb
knjrbfw-0.0.57 lib/knj/tests/test_mount.rb
knjrbfw-0.0.55 lib/knj/tests/test_mount.rb
knjrbfw-0.0.54 lib/knj/tests/test_mount.rb
knjrbfw-0.0.53 lib/knj/tests/test_mount.rb
knjrbfw-0.0.52 lib/knj/tests/test_mount.rb
knjrbfw-0.0.51 lib/knj/tests/test_mount.rb
knjrbfw-0.0.50 lib/knj/tests/test_mount.rb