Class: Digest::SHA1
- Inherits:
-
Object
- Object
- Digest::SHA1
- Defined in:
- lib/rscale/helpers.rb
Class Method Summary collapse
Class Method Details
.filedigest(path) ⇒ Object
29 30 31 32 33 |
# File 'lib/rscale/helpers.rb', line 29 def self.filedigest(path) d = Digest::SHA1.new File.open(path, 'r') { |f| d.update(f.read(BLOCK_SIZE)) until f.eof? } d.hexdigest end |