Sha256: f3df7231fd7a340205adc298bee5b66242f9d8085a0dc77126804da9dfa39f88

Contents?: true

Size: 581 Bytes

Versions: 3

Compression:

Stored size: 581 Bytes

Contents

module Pod
  module Downloader
    # The class responsible for managing Pod downloads, transparently caching
    # them in a cache directory.
    #
    class Cache
      include SourceConfig::Mixin
      def ensure_matching_version
        version_file = root + 'VERSION'

        source_config.mutex_for_downloader.synchronize {
          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 }
        }
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cocoapods-pdk8-0.0.3 lib/cocoapods-pdk8/hook/download.rb
cocoapods-pdk8-0.0.2 lib/cocoapods-pdk8/hook/download.rb
cocoapods-pdk8-0.0.1 lib/cocoapods-pdk8/hook/download.rb