mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-16 21:26:21 +00:00
feat: un deploy puede tener varias urls
This commit is contained in:
parent
89f5ed90eb
commit
15e6696bcf
1 changed files with 9 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue