Method: Inspec::Profile.for_fetcher

Defined in:
lib/inspec/profile.rb

.for_fetcher(fetcher, opts) ⇒ Object



66
67
68
69
70
# File 'lib/inspec/profile.rb', line 66

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