Load *flight blocks from API

This commit is contained in:
Rylan Polster 2023-01-04 02:30:24 -05:00
parent 52263e2917
commit ffc74a51fb
No known key found for this signature in database
GPG Key ID: 46A744940CFF4D64

View File

@ -263,7 +263,11 @@ module Cask
json_cask[:artifacts].each do |artifact|
key = artifact.keys.first
send(key, *artifact[key])
if FLIGHT_STANZAS.include?(key)
instance_eval(artifact[key])
else
send(key, *artifact[key])
end
end
caveats json_cask[:caveats] if json_cask[:caveats].present?