Sha256: 3a26649e9620485aecde213e82ea75f2657591e75e20fd3a04964c98f802fd1f
Contents?: true
Size: 466 Bytes
Versions: 8
Compression:
Stored size: 466 Bytes
Contents
require "inspec/fetcher" module Fetchers class Mock < Inspec.fetcher(1) name "mock" priority 0 def self.resolve(target) return nil unless target.is_a? Hash new(target) end def initialize(data) @data = data end def fetch(_path) archive_path end def archive_path { mock: @data } end def resolved_source { mock_fetcher: true } end def cache_key "" end end end
Version data entries
8 entries across 8 versions & 2 rubygems