mirror of
https://github.com/inspec/inspec
synced 2025-02-16 22:18:38 +00:00
simplify mock file loading method
This commit is contained in:
parent
a206d0ef09
commit
a895d19f03
1 changed files with 1 additions and 5 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue