Sha256: 10dde1738c23acbb9a5b1ec8a6e4a9261a971ea8e1f338d62ab2e7a1e5fad365
Contents?: true
Size: 801 Bytes
Versions: 3
Compression:
Stored size: 801 Bytes
Contents
module PodPrebuild class DevPodsCacheValidator < BaseCacheValidator def initialize(options) super(options) @sandbox_root = options[:sandbox_root] end 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 end end
Version data entries
3 entries across 3 versions & 1 rubygems