Class: ProtoFS
- Inherits:
-
Object
- Object
- ProtoFS
- Defined in:
- lib/virtfs/protofs/protofs_dir_class.rb,
lib/virtfs/protofs/protofs_dir.rb,
lib/virtfs/protofs/protofs_base.rb,
lib/virtfs/protofs/protofs_file.rb,
lib/virtfs/protofs/protofs_file_class.rb
Overview
File class methods - are instance methods of filesystem instance.
Defined Under Namespace
Instance Attribute Summary collapse
-
#mount_point ⇒ Object
Returns the value of attribute mount_point.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
- #dir_delete(p) ⇒ Object
- #dir_entries(p) ⇒ Object
- #dir_exist?(p) ⇒ Boolean
- #dir_foreach(p, &block) ⇒ Object
- #dir_mkdir(p, permissions) ⇒ Object
- #dir_new(dir, hash_args = {}) ⇒ Object
- #file_atime(p) ⇒ Object
- #file_blockdev?(p) ⇒ Boolean
- #file_chardev?(p) ⇒ Boolean
- #file_chmod(permission, p) ⇒ Object
- #file_chown(owner, group, p) ⇒ Object
- #file_delete(p) ⇒ Object
- #file_directory?(p) ⇒ Boolean
- #file_executable?(p) ⇒ Boolean
- #file_executable_real?(p) ⇒ Boolean
- #file_exist?(p) ⇒ Boolean
- #file_file?(p) ⇒ Boolean
- #file_fileCtime(p) ⇒ Object
- #file_ftype(p) ⇒ Object
- #file_grpowned?(p) ⇒ Boolean
- #file_identical?(p1, p2) ⇒ Boolean
- #file_lchmod(permission, p) ⇒ Object
- #file_lchown(owner, group, p) ⇒ Object
- #file_link(p1, p2) ⇒ Object
- #file_lstat(p) ⇒ Object
- #file_mtime(p) ⇒ Object
- #file_new(f, parsed_args) ⇒ Object
- #file_owned?(p) ⇒ Boolean
- #file_pipe?(p) ⇒ Boolean
- #file_readable?(p) ⇒ Boolean
- #file_readable_real?(p) ⇒ Boolean
- #file_readlink(p) ⇒ Object
- #file_rename(p1, p2) ⇒ Object
- #file_setgid?(p) ⇒ Boolean
- #file_setuid?(p) ⇒ Boolean
- #file_size(p) ⇒ Object
- #file_socket?(p) ⇒ Boolean
- #file_stat(p) ⇒ Object
- #file_sticky?(p) ⇒ Boolean
- #file_symlink(oname, p) ⇒ Object
- #file_symlink?(p) ⇒ Boolean
- #file_truncate(p, len) ⇒ Object
- #file_utime(atime, mtime, p) ⇒ Object
- #file_world_readable?(p, len) ⇒ Boolean
- #file_world_writable?(p, len) ⇒ Boolean
- #file_writable?(p, len) ⇒ Boolean
- #file_writable_real?(p, len) ⇒ Boolean
-
#initialize ⇒ ProtoFS
constructor
A new instance of ProtoFS.
- #umount ⇒ Object
Constructor Details
#initialize ⇒ ProtoFS
Returns a new instance of ProtoFS.
4 5 6 7 |
# File 'lib/virtfs/protofs/protofs_base.rb', line 4 def initialize @mount_point = nil @name = self.class.name end |
Instance Attribute Details
#mount_point ⇒ Object
Returns the value of attribute mount_point.
2 3 4 |
# File 'lib/virtfs/protofs/protofs_base.rb', line 2 def mount_point @mount_point end |
#name ⇒ Object
Returns the value of attribute name.
2 3 4 |
# File 'lib/virtfs/protofs/protofs_base.rb', line 2 def name @name end |
Instance Method Details
#dir_delete(p) ⇒ Object
5 6 |
# File 'lib/virtfs/protofs/protofs_dir_class.rb', line 5 def dir_delete(p) end |
#dir_entries(p) ⇒ Object
8 9 |
# File 'lib/virtfs/protofs/protofs_dir_class.rb', line 8 def dir_entries(p) end |
#dir_exist?(p) ⇒ Boolean
11 12 |
# File 'lib/virtfs/protofs/protofs_dir_class.rb', line 11 def dir_exist?(p) end |
#dir_foreach(p, &block) ⇒ Object
14 15 |
# File 'lib/virtfs/protofs/protofs_dir_class.rb', line 14 def dir_foreach(p, &block) end |
#dir_mkdir(p, permissions) ⇒ Object
17 18 |
# File 'lib/virtfs/protofs/protofs_dir_class.rb', line 17 def dir_mkdir(p, ) end |
#dir_new(dir, hash_args = {}) ⇒ Object
20 21 22 |
# File 'lib/virtfs/protofs/protofs_dir_class.rb', line 20 def dir_new(dir, hash_args={}) Dir.new(self, lookup_dir(dir), hash_args) end |
#file_atime(p) ⇒ Object
5 6 |
# File 'lib/virtfs/protofs/protofs_file_class.rb', line 5 def file_atime(p) end |
#file_blockdev?(p) ⇒ Boolean
8 9 |
# File 'lib/virtfs/protofs/protofs_file_class.rb', line 8 def file_blockdev?(p) end |
#file_chardev?(p) ⇒ Boolean
11 12 |
# File 'lib/virtfs/protofs/protofs_file_class.rb', line 11 def file_chardev?(p) end |
#file_chmod(permission, p) ⇒ Object
14 15 |
# File 'lib/virtfs/protofs/protofs_file_class.rb', line 14 def file_chmod(, p) end |
#file_chown(owner, group, p) ⇒ Object
17 18 |
# File 'lib/virtfs/protofs/protofs_file_class.rb', line 17 def file_chown(owner, group, p) end |
#file_delete(p) ⇒ Object
23 24 |
# File 'lib/virtfs/protofs/protofs_file_class.rb', line 23 def file_delete(p) end |
#file_directory?(p) ⇒ Boolean
26 27 |
# File 'lib/virtfs/protofs/protofs_file_class.rb', line 26 def file_directory?(p) end |
#file_executable?(p) ⇒ Boolean
29 30 |
# File 'lib/virtfs/protofs/protofs_file_class.rb', line 29 def file_executable?(p) end |
#file_executable_real?(p) ⇒ Boolean
32 33 |
# File 'lib/virtfs/protofs/protofs_file_class.rb', line 32 def file_executable_real?(p) end |
#file_exist?(p) ⇒ Boolean
35 36 |
# File 'lib/virtfs/protofs/protofs_file_class.rb', line 35 def file_exist?(p) end |
#file_file?(p) ⇒ Boolean
38 39 |
# File 'lib/virtfs/protofs/protofs_file_class.rb', line 38 def file_file?(p) end |
#file_fileCtime(p) ⇒ Object
20 21 |
# File 'lib/virtfs/protofs/protofs_file_class.rb', line 20 def file_fileCtime(p) end |
#file_ftype(p) ⇒ Object
41 42 |
# File 'lib/virtfs/protofs/protofs_file_class.rb', line 41 def file_ftype(p) end |
#file_grpowned?(p) ⇒ Boolean
44 45 |
# File 'lib/virtfs/protofs/protofs_file_class.rb', line 44 def file_grpowned?(p) end |
#file_identical?(p1, p2) ⇒ Boolean
47 48 |
# File 'lib/virtfs/protofs/protofs_file_class.rb', line 47 def file_identical?(p1, p2) end |
#file_lchmod(permission, p) ⇒ Object
50 51 |
# File 'lib/virtfs/protofs/protofs_file_class.rb', line 50 def file_lchmod(, p) end |
#file_lchown(owner, group, p) ⇒ Object
53 54 |
# File 'lib/virtfs/protofs/protofs_file_class.rb', line 53 def file_lchown(owner, group, p) end |
#file_link(p1, p2) ⇒ Object
56 57 |
# File 'lib/virtfs/protofs/protofs_file_class.rb', line 56 def file_link(p1, p2) end |
#file_lstat(p) ⇒ Object
59 60 |
# File 'lib/virtfs/protofs/protofs_file_class.rb', line 59 def file_lstat(p) end |
#file_mtime(p) ⇒ Object
62 63 |
# File 'lib/virtfs/protofs/protofs_file_class.rb', line 62 def file_mtime(p) end |
#file_new(f, parsed_args) ⇒ Object
125 126 127 |
# File 'lib/virtfs/protofs/protofs_file_class.rb', line 125 def file_new(f, parsed_args) File.new(self, lookup_file(f), parsed_args) end |
#file_owned?(p) ⇒ Boolean
65 66 |
# File 'lib/virtfs/protofs/protofs_file_class.rb', line 65 def file_owned?(p) end |
#file_pipe?(p) ⇒ Boolean
68 69 |
# File 'lib/virtfs/protofs/protofs_file_class.rb', line 68 def file_pipe?(p) end |
#file_readable?(p) ⇒ Boolean
71 72 |
# File 'lib/virtfs/protofs/protofs_file_class.rb', line 71 def file_readable?(p) end |
#file_readable_real?(p) ⇒ Boolean
74 75 |
# File 'lib/virtfs/protofs/protofs_file_class.rb', line 74 def file_readable_real?(p) end |
#file_readlink(p) ⇒ Object
77 78 |
# File 'lib/virtfs/protofs/protofs_file_class.rb', line 77 def file_readlink(p) end |
#file_rename(p1, p2) ⇒ Object
80 81 |
# File 'lib/virtfs/protofs/protofs_file_class.rb', line 80 def file_rename(p1, p2) end |
#file_setgid?(p) ⇒ Boolean
83 84 |
# File 'lib/virtfs/protofs/protofs_file_class.rb', line 83 def file_setgid?(p) end |
#file_setuid?(p) ⇒ Boolean
86 87 |
# File 'lib/virtfs/protofs/protofs_file_class.rb', line 86 def file_setuid?(p) end |
#file_size(p) ⇒ Object
89 90 |
# File 'lib/virtfs/protofs/protofs_file_class.rb', line 89 def file_size(p) end |
#file_socket?(p) ⇒ Boolean
92 93 |
# File 'lib/virtfs/protofs/protofs_file_class.rb', line 92 def file_socket?(p) end |
#file_stat(p) ⇒ Object
95 96 |
# File 'lib/virtfs/protofs/protofs_file_class.rb', line 95 def file_stat(p) end |
#file_sticky?(p) ⇒ Boolean
98 99 |
# File 'lib/virtfs/protofs/protofs_file_class.rb', line 98 def file_sticky?(p) end |
#file_symlink(oname, p) ⇒ Object
101 102 |
# File 'lib/virtfs/protofs/protofs_file_class.rb', line 101 def file_symlink(oname, p) end |
#file_symlink?(p) ⇒ Boolean
104 105 |
# File 'lib/virtfs/protofs/protofs_file_class.rb', line 104 def file_symlink?(p) end |
#file_truncate(p, len) ⇒ Object
107 108 |
# File 'lib/virtfs/protofs/protofs_file_class.rb', line 107 def file_truncate(p, len) end |
#file_utime(atime, mtime, p) ⇒ Object
110 111 |
# File 'lib/virtfs/protofs/protofs_file_class.rb', line 110 def file_utime(atime, mtime, p) end |
#file_world_readable?(p, len) ⇒ Boolean
113 114 |
# File 'lib/virtfs/protofs/protofs_file_class.rb', line 113 def file_world_readable?(p, len) end |
#file_world_writable?(p, len) ⇒ Boolean
116 117 |
# File 'lib/virtfs/protofs/protofs_file_class.rb', line 116 def file_world_writable?(p, len) end |
#file_writable?(p, len) ⇒ Boolean
119 120 |
# File 'lib/virtfs/protofs/protofs_file_class.rb', line 119 def file_writable?(p, len) end |
#file_writable_real?(p, len) ⇒ Boolean
122 123 |
# File 'lib/virtfs/protofs/protofs_file_class.rb', line 122 def file_writable_real?(p, len) end |
#umount ⇒ Object
9 10 11 |
# File 'lib/virtfs/protofs/protofs_base.rb', line 9 def umount @mount_point = nil end |