module ArtifactTools::Hasher
wrapper for the hashing algo used
Public Instance Methods
file_hash(path)
click to toggle source
Calculate hash of a file
@param path [String] Path to file to hash.
# File lib/artifact_tools/hasher.rb, line 9 def file_hash(path) hash_algo.file(path).hexdigest end
Private Instance Methods
hash_algo()
click to toggle source
# File lib/artifact_tools/hasher.rb, line 15 def hash_algo # TODO: decide on used algorithm Digest::SHA1 end