Sha256: 5ea18e972a2aced04877b5d73a8b6fab847a76c212aff6861c5a5bdfb1be954c
Contents?: true
Size: 860 Bytes
Versions: 2
Compression:
Stored size: 860 Bytes
Contents
require 'cocoapods-bb-PodAssistant/config/stable_source' require 'cocoapods-bb-PodAssistant/helpers/pod_utils' module BB class Cache def initialize(stable_source = nil) if stable_source.nil? stable_source = StableSource.stable_default_source end @stable_source = stable_source if File.exist?(File.join(Pathname.pwd, "Podfile")) @bundleId = BB::PodUtils.getProjectBundleIdentifier end if @bundleId.nil? @bundleId = 'stable' end end def cachePath() # 缓存路径采用bundle包名区分,解决多产品同时打包问题 File.join(File.expand_path('~/.cache'), 'cocoapods-bb-PodAssistant',@bundleId,@stable_source.split('/').last.chomp('.git').to_s) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cocoapods-bb-PodAssistant-0.1.9.2 | lib/cocoapods-bb-PodAssistant/config/cache_path.rb |
cocoapods-bb-PodAssistant-0.1.9.1 | lib/cocoapods-bb-PodAssistant/config/cache_path.rb |