mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-23 00:46:23 +00:00
informar el servidor remoto
This commit is contained in:
parent
4c3e56ac60
commit
84c51ad5ec
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue