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:
parent
b226ffb609
commit
dd93689e5b
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue