Method: Bundler::CompactIndexClient::CacheFile#close
- Defined in:
- lib/bundler/compact_index_client/cache_file.rb
#close ⇒ Object
Remove the temp file without replacing the original file. The file is permanently closed.
141 142 143 144 145 |
# File 'lib/bundler/compact_index_client/cache_file.rb', line 141 def close return if @closed FileUtils.remove_file(path) if @path&.file? @closed = true end |