Class: PodPrebuild::DevPodsCacheValidator
- Inherits:
-
BaseCacheValidator
- Object
- BaseCacheValidator
- PodPrebuild::DevPodsCacheValidator
- Defined in:
- lib/cocoapods-binary-cache/cache/validator_dev_pods.rb
Instance Attribute Summary
Attributes inherited from BaseCacheValidator
#generated_framework_path, #pod_lockfile, #podfile, #prebuilt_lockfile, #validate_prebuilt_settings
Instance Method Summary collapse
-
#initialize(options) ⇒ DevPodsCacheValidator
constructor
A new instance of DevPodsCacheValidator.
- #validate ⇒ Object
Methods inherited from BaseCacheValidator
#changes_of_prebuilt_lockfile_vs_podfile, #incompatible_build_settings, #read_prebuilt_build_settings, #validate_pods, #validate_with_podfile
Constructor Details
#initialize(options) ⇒ DevPodsCacheValidator
Returns a new instance of DevPodsCacheValidator.
3 4 5 6 |
# File 'lib/cocoapods-binary-cache/cache/validator_dev_pods.rb', line 3 def initialize() super() @sandbox_root = [:sandbox_root] end |
Instance Method Details
#validate ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/cocoapods-binary-cache/cache/validator_dev_pods.rb', line 8 def validate(*) return PodPrebuild::CacheValidationResult.new if @pod_lockfile.nil? # TODO (thuyen): Logic needs to be revised # TODO (thuyen): Migrate the code PodCacheValidator.verify_devpod_checksum to this place missed_with_checksum, hit_with_checksum = PodCacheValidator.verify_devpod_checksum( @sandbox_root, @generated_framework_path, @pod_lockfile.lockfile ) missed = missed_with_checksum.transform_values { |checksum| "Checksum changed: #{checksum}" } PodPrebuild::CacheValidationResult.new(missed, hit_with_checksum.keys.to_set) end |