mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-16 14:31:42 +00:00
feat: un deploy puede tener varias urls
This commit is contained in:
parent
c291fefa99
commit
56a3f2becb
1 changed files with 9 additions and 0 deletions
|
@ -60,6 +60,15 @@ class DeployDistributedPress < Deploy
|
|||
|
||||
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
|
||||
|
||||
# El cliente de la API
|
||||
|
|
Loading…
Reference in a new issue