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
22 23 24 |
# File 'lib/rex/post/dir.rb', line 22 def Dir.chdir(path) raise NotImplementedError end |
.delete(path) ⇒ Object
38 39 40 |
# File 'lib/rex/post/dir.rb', line 38 def Dir.delete(path) raise NotImplementedError end |
.entries(name) ⇒ Object
14 15 16 |
# File 'lib/rex/post/dir.rb', line 14 def Dir.entries(name) raise NotImplementedError end |
.foreach(name, &block) ⇒ Object
18 19 20 |
# File 'lib/rex/post/dir.rb', line 18 def Dir.foreach(name, &block) entries(name).each(&block) end |
.getwd ⇒ Object
34 35 36 |
# File 'lib/rex/post/dir.rb', line 34 def Dir.getwd raise NotImplementedError end |
.mkdir(path) ⇒ Object
26 27 28 |
# File 'lib/rex/post/dir.rb', line 26 def Dir.mkdir(path) raise NotImplementedError end |
.pwd ⇒ Object
30 31 32 |
# File 'lib/rex/post/dir.rb', line 30 def Dir.pwd raise NotImplementedError end |
.rmdir(path) ⇒ Object
42 43 44 |
# File 'lib/rex/post/dir.rb', line 42 def Dir.rmdir(path) raise NotImplementedError end |
.unlink(path) ⇒ Object
46 47 48 |
# File 'lib/rex/post/dir.rb', line 46 def Dir.unlink(path) raise NotImplementedError end |