Module: Pod
- Defined in:
- lib/cocoapods-cache-proxy/native/downloader.rb,
lib/cocoapods-cache-proxy/gem_version.rb,
lib/cocoapods-cache-proxy/native/config.rb,
lib/cocoapods-cache-proxy/native/resolver.rb,
lib/cocoapods-cache-proxy/native/podfile_dsl.rb,
lib/cocoapods-cache-proxy/native/podfile_dsl.rb,
lib/cocoapods-cache-proxy/command/cache_proxy.rb,
lib/cocoapods-cache-proxy/command/cache_proxy/add.rb,
lib/cocoapods-cache-proxy/native/cache_proxy_auth.rb,
lib/cocoapods-cache-proxy/command/cache_proxy/list.rb,
lib/cocoapods-cache-proxy/native/cache_proxy_source.rb,
lib/cocoapods-cache-proxy/command/cache_proxy/remove.rb,
lib/cocoapods-cache-proxy/command/cache_proxy/update.rb,
lib/cocoapods-cache-proxy/command/cache_proxy/auth/add.rb,
lib/cocoapods-cache-proxy/command/cache_proxy/auth/auth.rb,
lib/cocoapods-cache-proxy/command/cache_proxy/auth/list.rb,
lib/cocoapods-cache-proxy/command/cache_proxy/auth/remove.rb,
lib/cocoapods-cache-proxy/command/cache_proxy/auth/update.rb,
lib/cocoapods-cache-proxy/helper/cache_proxy_source_helper.rb
Overview
module Pod
module Downloader
class Cache
alias_method :orig_copy_and_clean, :copy_and_clean
def copy_and_clean(source, destination, spec)
# specs_by_platform = group_subspecs_by_platform(spec)
# destination.parent.mkpath
# FileUtils.rm_rf(destination)
# FileUtils.cp_r(source, destination)
# Pod::Installer::PodSourcePreparer.new(spec, destination).prepare!
# Sandbox::PodDirCleaner.new(destination, specs_by_platform).clean!
Pod::UI. "copy_and_clean: \n"
Pod::UI. "spec: #{spec.class}"
Pod::UI. "source: #{source}"
Pod::UI. "destination: #{destination}"
Pod::UI. "destination parent: #{destination.parent}"
Pod::UI. "destination parent basename: #{destination.basename}"
p = "/Users/king/Desktop/#{source.basename}"
FileUtils.rm_rf(p)
FileUtils.cp_r(source, p)
# exit 0
orig_copy_and_clean(source, destination, spec)
# exit 0
end
end
end
end
Defined Under Namespace
Modules: Downloader Classes: CacheProxyAuth, CacheProxySource, Command, Config, Podfile, Resolver
Class Method Summary collapse
Class Method Details
.match_version?(*version) ⇒ Boolean
6 7 8 |
# File 'lib/cocoapods-cache-proxy/gem_version.rb', line 6 def self.match_version?(*version) Gem::Dependency.new("", *version).match?('', Pod::VERSION) end |