class Pod::Downloader::Cache

The class responsible for managing Pod downloads, transparently caching them in a cache directory.

Public Instance Methods

ensure_matching_version() click to toggle source
# File lib/cocoapods-multithread-installpod.rb, line 52
def ensure_matching_version
  @@mutex.lock
  version_file = root + 'VERSION'
  version = version_file.read.strip if version_file.file?

  root.rmtree if version != Pod::VERSION && root.exist?
  root.mkpath
  version_file.open('w') { |f| f << Pod::VERSION }
  @@mutex.unlock
end