simplify mock file loading method

This commit is contained in:
Christoph Hartmann 2015-09-03 17:53:38 +02:00
parent a206d0ef09
commit a895d19f03

View file

@ -13,11 +13,7 @@ module Vulcano::Backends
def file(path)
puts "--> get file #{path}"
newpath = @mapping[path]
if newpath != nil
@files[path] ||= File.new(self, newpath, false)
else
@files[path] ||= File.new(self, path)
end
@files[path] ||= File.new(self, newpath || path, newpath.nil?)
end
def run_command(cmd)