Class: ProtoFS

Inherits:
Object
  • Object
show all
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

Classes: Dir, File

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeProtoFS

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_pointObject

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

#nameObject

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

Returns:

  • (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, permissions)
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

Returns:

  • (Boolean)


8
9
# File 'lib/virtfs/protofs/protofs_file_class.rb', line 8

def file_blockdev?(p)
end

#file_chardev?(p) ⇒ Boolean

Returns:

  • (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(permission, 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

Returns:

  • (Boolean)


26
27
# File 'lib/virtfs/protofs/protofs_file_class.rb', line 26

def file_directory?(p)
end

#file_executable?(p) ⇒ Boolean

Returns:

  • (Boolean)


29
30
# File 'lib/virtfs/protofs/protofs_file_class.rb', line 29

def file_executable?(p)
end

#file_executable_real?(p) ⇒ Boolean

Returns:

  • (Boolean)


32
33
# File 'lib/virtfs/protofs/protofs_file_class.rb', line 32

def file_executable_real?(p)
end

#file_exist?(p) ⇒ Boolean

Returns:

  • (Boolean)


35
36
# File 'lib/virtfs/protofs/protofs_file_class.rb', line 35

def file_exist?(p)
end

#file_file?(p) ⇒ Boolean

Returns:

  • (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

Returns:

  • (Boolean)


44
45
# File 'lib/virtfs/protofs/protofs_file_class.rb', line 44

def file_grpowned?(p)
end

#file_identical?(p1, p2) ⇒ Boolean

Returns:

  • (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(permission, 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


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

Returns:

  • (Boolean)


65
66
# File 'lib/virtfs/protofs/protofs_file_class.rb', line 65

def file_owned?(p)
end

#file_pipe?(p) ⇒ Boolean

Returns:

  • (Boolean)


68
69
# File 'lib/virtfs/protofs/protofs_file_class.rb', line 68

def file_pipe?(p)
end

#file_readable?(p) ⇒ Boolean

Returns:

  • (Boolean)


71
72
# File 'lib/virtfs/protofs/protofs_file_class.rb', line 71

def file_readable?(p)
end

#file_readable_real?(p) ⇒ Boolean

Returns:

  • (Boolean)


74
75
# File 'lib/virtfs/protofs/protofs_file_class.rb', line 74

def file_readable_real?(p)
end


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

Returns:

  • (Boolean)


83
84
# File 'lib/virtfs/protofs/protofs_file_class.rb', line 83

def file_setgid?(p)
end

#file_setuid?(p) ⇒ Boolean

Returns:

  • (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

Returns:

  • (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

Returns:

  • (Boolean)


98
99
# File 'lib/virtfs/protofs/protofs_file_class.rb', line 98

def file_sticky?(p)
end


101
102
# File 'lib/virtfs/protofs/protofs_file_class.rb', line 101

def file_symlink(oname, p)
end

#file_symlink?(p) ⇒ Boolean

Returns:

  • (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

Returns:

  • (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

Returns:

  • (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

Returns:

  • (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

Returns:

  • (Boolean)


122
123
# File 'lib/virtfs/protofs/protofs_file_class.rb', line 122

def file_writable_real?(p, len)
end

#umountObject



9
10
11
# File 'lib/virtfs/protofs/protofs_base.rb', line 9

def umount
  @mount_point = nil
end