Add helper for verification of multiple properties

With the expectation that:
- we will add gpg checks;
- we may add a `verify` verb;
- we may introduce new means of verification, e.g. OS X's `codesign`
This commit is contained in:
ndr 2015-01-07 20:29:45 +00:00
parent b226ffb609
commit dd93689e5b
1 changed files with 4 additions and 0 deletions

View File

@ -1,6 +1,10 @@
require 'digest' require 'digest'
module Hbc::Verify module Hbc::Verify
def self.all(path, cask)
checksum(path, cask)
end
def self.checksum(path, cask) def self.checksum(path, cask)
begin begin
expected = cask.sha256 expected = cask.sha256