class Inspec::MockProvider

Attributes

files[R]

Public Class Methods

new(path) click to toggle source
# File lib/inspec/file_provider.rb, line 58
def initialize(path)
  @data = path[:mock]
  @files = @data.keys
end

Public Instance Methods

read(file) click to toggle source
# File lib/inspec/file_provider.rb, line 63
def read(file)
  @data[file]
end