Method: Inspec::CachedFetcher#initialize
- Defined in:
- lib/inspec/cached_fetcher.rb
#initialize(target, cache) ⇒ CachedFetcher
Returns a new instance of CachedFetcher.
10 11 12 13 14 15 16 17 18 19 |
# File 'lib/inspec/cached_fetcher.rb', line 10 def initialize(target, cache) @target = target @fetcher = Inspec::Fetcher.resolve(target) if @fetcher.nil? raise("Could not fetch inspec profile in #{target.inspect}.") end @cache = cache end |