Class: Bosh::Deployer::HashFingerprinter
- Inherits:
-
Object
- Object
- Bosh::Deployer::HashFingerprinter
- Defined in:
- lib/bosh/deployer/hash_fingerprinter.rb
Instance Method Summary collapse
Instance Method Details
#sha1(hash) ⇒ Object
6 7 8 9 |
# File 'lib/bosh/deployer/hash_fingerprinter.rb', line 6 def sha1(hash) encoded = JSON.dump(sorted_hash(hash)) Digest::SHA1.hexdigest(encoded) end |