Method: Inspec::Profile.for_fetcher

Defined in:
lib/inspec/profile.rb

.for_fetcher(fetcher, opts) ⇒ Object



69
70
71
72
73
# File 'lib/inspec/profile.rb', line 69

def self.for_fetcher(fetcher, opts)
  opts[:cache] = opts[:cache] || Cache.new
  path, writable = fetcher.fetch
  for_path(path, opts.merge(target: fetcher.target, writable: writable))
end