Method: Bundler::CompactIndexClient::Updater#update
- Defined in:
- lib/bundler/compact_index_client/updater.rb
#update(remote_path, local_path, etag_path) ⇒ Object
16 17 18 19 20 21 22 |
# File 'lib/bundler/compact_index_client/updater.rb', line 16 def update(remote_path, local_path, etag_path) append(remote_path, local_path, etag_path) || replace(remote_path, local_path, etag_path) rescue CacheFile::DigestMismatchError => e raise MismatchedChecksumError.new(remote_path, e.) rescue Zlib::GzipFile::Error raise Bundler::HTTPError end |