Load *flight
blocks from API
This commit is contained in:
parent
52263e2917
commit
ffc74a51fb
@ -263,8 +263,12 @@ module Cask
|
|||||||
|
|
||||||
json_cask[:artifacts].each do |artifact|
|
json_cask[:artifacts].each do |artifact|
|
||||||
key = artifact.keys.first
|
key = artifact.keys.first
|
||||||
|
if FLIGHT_STANZAS.include?(key)
|
||||||
|
instance_eval(artifact[key])
|
||||||
|
else
|
||||||
send(key, *artifact[key])
|
send(key, *artifact[key])
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
caveats json_cask[:caveats] if json_cask[:caveats].present?
|
caveats json_cask[:caveats] if json_cask[:caveats].present?
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user