Sha256: ae8da952badfafd382f90543ca3f38c6f74bd63c9f79308e5bddcff7581fd90f

Contents?: true

Size: 757 Bytes

Versions: 30

Compression:

Stored size: 757 Bytes

Contents

module PodPrebuild
  class CacheValidator
    def initialize(options)
      @validators = [
        PodPrebuild::PodfileChangesCacheValidator.new(options),
        PodPrebuild::NonDevPodsCacheValidator.new(options)
      ]
      @validators << PodPrebuild::DevPodsCacheValidator.new(options) if PodPrebuild.config.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

30 entries across 30 versions & 4 rubygems

Version Path
cocoapods-binary-cache-next-0.1.16 lib/cocoapods-binary-cache/cache/validator.rb
cocoapods-binary-cache-next-0.1.15 lib/cocoapods-binary-cache/cache/validator.rb
cocoapods-binary-artifactory-cache-0.0.19 lib/cocoapods-binary-artifactory-cache/cache/validator.rb
cocoapods-binary-artifactory-cache-0.0.18 lib/cocoapods-binary-artifactory-cache/cache/validator.rb
cocoapods-binary-artifactory-cache-0.0.17 lib/cocoapods-binary-artifactory-cache/cache/validator.rb
cocoapods-binary-artifactory-cache-0.0.16 lib/cocoapods-binary-artifactory-cache/cache/validator.rb
cocoapods-binary-artifactory-cache-0.0.15 lib/cocoapods-binary-artifactory-cache/cache/validator.rb
cocoapods-binary-artifactory-cache-0.0.14 lib/cocoapods-binary-artifactory-cache/cache/validator.rb
cocoapods-binary-artifactory-cache-0.0.13 lib/cocoapods-binary-artifactory-cache/cache/validator.rb
cocoapods-binary-artifactory-cache-0.0.12 lib/cocoapods-binary-artifactory-cache/cache/validator.rb
cocoapods-binary-artifactory-cache-0.0.11 lib/cocoapods-binary-artifactory-cache/cache/validator.rb
cocoapods-binary-artifactory-cache-0.0.10 lib/cocoapods-binary-artifactory-cache/cache/validator.rb
cocoapods-binary-artifactory-cache-0.0.9 lib/cocoapods-binary-artifactory-cache/cache/validator.rb
cocoapods-binary-ht-1.0.0 lib/cocoapods-binary-ht/cache/validator.rb
cocoapods-binary-artifactory-cache-0.0.8 lib/cocoapods-binary-artifactory-cache/cache/validator.rb
cocoapods-binary-artifactory-cache-0.0.7 lib/cocoapods-binary-artifactory-cache/cache/validator.rb
cocoapods-binary-artifactory-cache-0.0.6 lib/cocoapods-binary-artifactory-cache/cache/validator.rb
cocoapods-binary-artifactory-cache-0.0.5 lib/cocoapods-binary-artifactory-cache/cache/validator.rb
cocoapods-binary-artifactory-cache-0.0.4 lib/cocoapods-binary-artifactory-cache/cache/validator.rb
cocoapods-binary-artifactory-cache-0.0.3 lib/cocoapods-binary-artifactory-cache/cache/validator.rb