Sha256: 998faa2859da741d45854cc85370dc538d9868baf7eca0ee30b1af9294d206e5
Contents?: true
Size: 755 Bytes
Versions: 1
Compression:
Stored size: 755 Bytes
Contents
module PodPrebuild class CacheValidator def initialize(options) @validators = [ PodPrebuild::PodfileChangesCacheValidator.new(options), PodPrebuild::NonDevPodsCacheValidator.new(options) ] @validators << PodPrebuild::DevPodsCacheValidator.new(options) if Pod::Podfile::DSL.dev_pods_enabled @validators << PodPrebuild::DependenciesGraphCacheValidator.new(options) @validators << PodPrebuild::ExclusionCacheValidator.new(options) end def validate(*) @validators.reduce(PodPrebuild::CacheValidationResult.new) do |acc, validator| validation = validator.validate(acc) validator.is_a?(AccumulatedCacheValidator) ? validation : acc.merge(validation) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cocoapods-binary-cache-0.1.5 | lib/cocoapods-binary-cache/cache/validator.rb |