Method: Inspec::Cache#archive_entry_for
- Defined in:
- lib/inspec/dependencies/cache.rb
#archive_entry_for(key) ⇒ Object
34 35 36 37 38 39 40 41 |
# File 'lib/inspec/dependencies/cache.rb', line 34 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 |