Class: Pod::Downloader::Cache

Inherits:
Object
  • Object
show all
Defined in:
lib/cocoapods_plugin.rb

Instance Method Summary collapse

Constructor Details

#initialize(root) ⇒ Cache

override



9
10
11
12
13
14
15
16
17
# File 'lib/cocoapods_plugin.rb', line 9

def initialize(root)
  @root = Pathname(root)
  @root += Pod::VERSION # this line is added by plugin
  #ensure_matching_version # this line is deleted by plugin

  UI.message "Using pods cache of path: #{@root} (by cocoapods-keep-multiversion-cache)" # this line is added by plugin
  @keep_multiversion_cache_root = @root # this line is added by plugin. save a path for later checking
  @keep_multiversion_cache_original = Pathname(root) # this line is added by plugin. save a path for later checking
end