Module: ArtifactTools::Hasher
- Included in:
- Client, ConfigFile, Uploader
- Defined in:
- lib/artifact_tools/hasher.rb
Overview
wrapper for the hashing algo used
Instance Method Summary collapse
-
#file_hash(path) ⇒ Object
Calculate hash of a file.
Instance Method Details
#file_hash(path) ⇒ Object
Calculate hash of a file
9 10 11 |
# File 'lib/artifact_tools/hasher.rb', line 9 def file_hash(path) hash_algo.file(path).hexdigest end |