mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-23 04:56:22 +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]
|
# @return [Array]
|
||||||
def user_host
|
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
|
next unless d.size == 1
|
||||||
|
|
||||||
d.insert(0, nil)
|
d.insert(0, nil)
|
||||||
|
@ -93,4 +93,8 @@ class DeployRsync < Deploy
|
||||||
def source
|
def source
|
||||||
site.deploys.find_by(type: 'DeployLocal').destination
|
site.deploys.find_by(type: 'DeployLocal').destination
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def url
|
||||||
|
"https://#{user_host.last}"
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue