Sha256: 8441c3250ddbd995018a927a551637bc20d96b770d8998ca1514449fc8c7d736
Contents?: true
Size: 598 Bytes
Versions: 2
Compression:
Stored size: 598 Bytes
Contents
module Longleaf # Provides digests for files from a manifest class ManifestDigestProvider # @param digests_mapping hash which maps file paths to hashs of digests def initialize(digests_mapping) @digests_mapping = digests_mapping end # @param file_path [String] path of file # @return hash containing all the manifested digests for the given path, or nil def get_digests(file_path) # return nil if key not found, in case the hash has default values return nil unless @digests_mapping.key?(file_path) @digests_mapping[file_path] end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
longleaf-1.1.1 | lib/longleaf/candidates/manifest_digest_provider.rb |
longleaf-1.1.0 | lib/longleaf/candidates/manifest_digest_provider.rb |