Method: Inspec::Cache#base_path_for

Defined in:
lib/inspec/dependencies/cache.rb

#base_path_for(cache_key) ⇒ String

Return the path to given profile in the cache.

The ‘source_url` parameter should be a URI-like string that fully specifies the source of the exact version we want to pull down.

Parameters:

  • name (String)
  • source_url (String)

Returns:

  • (String)


69
70
71
# File 'lib/inspec/dependencies/cache.rb', line 69

def base_path_for(cache_key)
  File.join(@path, cache_key)
end