Class: Rex::Post::Dir
- Inherits:
-
Object
- Object
- Rex::Post::Dir
- Defined in:
- lib/rex/post/dir.rb
Overview
This class wraps the behavior of the Ruby Dir class against a remote entity. Refer to the Ruby documentation for expected behavior.
Direct Known Subclasses
Class Method Summary collapse
- .chdir(path) ⇒ Object
- .delete(path) ⇒ Object
- .entries(name) ⇒ Object
- .foreach(name, &block) ⇒ Object
- .getwd ⇒ Object
- .mkdir(path) ⇒ Object
- .pwd ⇒ Object
- .rmdir(path) ⇒ Object
- .unlink(path) ⇒ Object
Class Method Details
.chdir(path) ⇒ Object
23 24 25 |
# File 'lib/rex/post/dir.rb', line 23 def Dir.chdir(path) raise NotImplementedError end |
.delete(path) ⇒ Object
39 40 41 |
# File 'lib/rex/post/dir.rb', line 39 def Dir.delete(path) raise NotImplementedError end |
.entries(name) ⇒ Object
15 16 17 |
# File 'lib/rex/post/dir.rb', line 15 def Dir.entries(name) raise NotImplementedError end |
.foreach(name, &block) ⇒ Object
19 20 21 |
# File 'lib/rex/post/dir.rb', line 19 def Dir.foreach(name, &block) entries(name).each(&block) end |
.getwd ⇒ Object
35 36 37 |
# File 'lib/rex/post/dir.rb', line 35 def Dir.getwd raise NotImplementedError end |
.mkdir(path) ⇒ Object
27 28 29 |
# File 'lib/rex/post/dir.rb', line 27 def Dir.mkdir(path) raise NotImplementedError end |
.pwd ⇒ Object
31 32 33 |
# File 'lib/rex/post/dir.rb', line 31 def Dir.pwd raise NotImplementedError end |
.rmdir(path) ⇒ Object
43 44 45 |
# File 'lib/rex/post/dir.rb', line 43 def Dir.rmdir(path) raise NotImplementedError end |
.unlink(path) ⇒ Object
47 48 49 |
# File 'lib/rex/post/dir.rb', line 47 def Dir.unlink(path) raise NotImplementedError end |