Method: Inspec::Cache#archive_entry_for

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

#archive_entry_for(key) ⇒ Object



35
36
37
38
39
40
41
42
# File 'lib/inspec/dependencies/cache.rb', line 35

def archive_entry_for(key)
  path = base_path_for(key)
  if File.exist?("#{path}.tar.gz")
    "#{path}.tar.gz"
  elsif File.exist?("#{path}.zip")
    "#{path}.zip"
  end
end