Class: Munge::Vfs::DryRun
- Inherits:
-
Object
- Object
- Munge::Vfs::DryRun
- Defined in:
- lib/munge/vfs/dry_run.rb
Instance Method Summary collapse
- #exist?(relpath) ⇒ Boolean
-
#initialize(vfs) ⇒ DryRun
constructor
A new instance of DryRun.
- #read(relpath) ⇒ Object
- #stat(relpath) ⇒ Object
- #tree ⇒ Object
- #write(_relpath, _content) ⇒ Object
Constructor Details
#initialize(vfs) ⇒ DryRun
Returns a new instance of DryRun.
4 5 6 |
# File 'lib/munge/vfs/dry_run.rb', line 4 def initialize(vfs) @vfs = vfs end |
Instance Method Details
#exist?(relpath) ⇒ Boolean
12 13 14 |
# File 'lib/munge/vfs/dry_run.rb', line 12 def exist?(relpath) @vfs.exist?(relpath) end |
#read(relpath) ⇒ Object
8 9 10 |
# File 'lib/munge/vfs/dry_run.rb', line 8 def read(relpath) @vfs.read(relpath) end |
#stat(relpath) ⇒ Object
19 20 21 |
# File 'lib/munge/vfs/dry_run.rb', line 19 def stat(relpath) @vfs.stat(relpath) end |
#tree ⇒ Object
23 24 25 |
# File 'lib/munge/vfs/dry_run.rb', line 23 def tree @vfs.tree end |
#write(_relpath, _content) ⇒ Object
16 17 |
# File 'lib/munge/vfs/dry_run.rb', line 16 def write(_relpath, _content) end |