Method: Inspec::Plugins::Fetcher#fetch

Defined in:
lib/inspec/plugins/fetcher.rb

#fetch(_path) ⇒ Object

Fetches the remote source to a local source, using the provided path as a partial filename. That is, if you pass /foo/bar/baz, the fetcher can create:

/foo/bar/baz/: A profile directory, or /foo/bar/baz.tar.gz: A profile tarball, or /foo/bar/baz.zip



51
52
53
# File 'lib/inspec/plugins/fetcher.rb', line 51

def fetch(_path)
  fail "Fetcher #{self} does not implement `fetch()`. This is required."
end