Sha256: 5598c00a2cd0cea693cfbd19634d820a45b00a636fe3419852186d716b21d8d2
Contents?: true
Size: 478 Bytes
Versions: 3
Compression:
Stored size: 478 Bytes
Contents
# encoding: utf-8 # author: Dominik Richter # author: Christoph Hartmann 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 end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
inspec-0.35.0 | lib/fetchers/mock.rb |
inspec-0.34.1 | lib/fetchers/mock.rb |
inspec-0.34.0 | lib/fetchers/mock.rb |