Sha256: 387a01e6fc5db6a26e31bbb5711484370671a71a6e2d5cfdee9fb65dbb897c1f

Contents?: true

Size: 797 Bytes

Versions: 3

Compression:

Stored size: 797 Bytes

Contents

module PodPrebuild
  class CacheValidator < BaseCacheValidator
    def initialize(options)
      super(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

3 entries across 3 versions & 1 rubygems

Version Path
cocoapods-binary-cache-0.1.3 lib/cocoapods-binary-cache/cache/validator.rb
cocoapods-binary-cache-0.1.2 lib/cocoapods-binary-cache/cache/validator.rb
cocoapods-binary-cache-0.1.1 lib/cocoapods-binary-cache/cache/validator.rb