5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-16 23:36:21 +00:00

feat: un deploy puede tener varias urls

This commit is contained in:
f 2023-02-08 18:49:37 -03:00
parent 89f5ed90eb
commit 15e6696bcf

View file

@ -60,6 +60,15 @@ class DeployDistributedPress < Deploy
def destination; end def destination; end
# Devuelve las URLs de todos los protocolos
def urls
remote_info[:links].values.map do |protocol|
[ protocol[:link], protocol[:gateway] ]
end.flatten.compact.select do |link|
link.include? '://'
end
end
private private
# El cliente de la API # El cliente de la API