Method: Inspec::Plugins::Fetcher#fetch
- Defined in:
- lib/inspec/plugin/v1/plugin_types/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
50 51 52 |
# File 'lib/inspec/plugin/v1/plugin_types/fetcher.rb', line 50 def fetch(_path) raise "Fetcher #{self} does not implement `fetch()`. This is required." end |