Method: Inspec::Requirement#pull
- Defined in:
- lib/inspec/dependencies/requirement.rb
#pull ⇒ Object
114 115 116 117 118 119 120 121 122 |
# File 'lib/inspec/dependencies/requirement.rb', line 114 def pull # TODO(ssd): Dispatch on the class here is gross. Seems like # Fetcher is missing an API we want. if fetcher.class == Fetchers::Local || @vendor_index.exists?(@name, source_url) local_path else @vendor_index.add(@name, source_url, fetcher.archive_path) end end |