Class: Munge::Vfs::DryRun

Inherits:
Object
  • Object
show all
Defined in:
lib/munge/vfs/dry_run.rb

Instance Method Summary collapse

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

Returns:

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

#treeObject



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