Method: Inspec::Profile.for_fetcher

Defined in:
lib/inspec/profile.rb

.for_fetcher(fetcher, config) ⇒ Object



63
64
65
66
67
68
# File 'lib/inspec/profile.rb', line 63

def self.for_fetcher(fetcher, config)
  opts = config.respond_to?(:final_options) ? config.final_options : config
  opts[:vendor_cache] = opts[:vendor_cache] || Cache.new
  path, writable = fetcher.fetch
  for_path(path, opts.merge(target: fetcher.target, writable: writable))
end