5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-07-05 19:45:46 +00:00

informar el servidor remoto

This commit is contained in:
f 2022-04-06 20:09:56 -03:00
parent 4c3e56ac60
commit 84c51ad5ec

View file

@ -73,7 +73,7 @@ class DeployRsync < Deploy
#
# @return [Array]
def user_host
destination.split(':', 2).first.split('@', 2).tap do |d|
@user_host ||= destination.split(':', 2).first.split('@', 2).tap do |d|
next unless d.size == 1
d.insert(0, nil)
@ -93,4 +93,8 @@ class DeployRsync < Deploy
def source
site.deploys.find_by(type: 'DeployLocal').destination
end
def url
"https://#{user_host.last}"
end
end