class Inspec::RuntimeProfile
def file(name)
-
(String)- contents of the file of RuntimeError if missing
Parameters:
-
name(String) -- the name of the file
def file(name) @src.data_files[File.join("files", name)] || raise("Cannot find file #{name} in profile.") end
def initialize(profile)
def initialize(profile) @src = profile.source_reader @files = @src.data_files.keys.map do |k| k.sub("files" + File::SEPARATOR, "") end end