mirror of
https://0xacab.org/sutty/sutty
synced 2024-07-04 18:45:48 +00:00
el método es público
This commit is contained in:
parent
8edc9b460a
commit
dcbd1c02ac
|
@ -16,6 +16,13 @@ class DeployRsync < Deploy
|
||||||
0
|
0
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Devolver el destino o lanzar un error si no está configurado
|
||||||
|
def destination
|
||||||
|
values[:destination].tap do |d|
|
||||||
|
raise(ArgumentError, 'destination no está configurado') if d.blank?
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
# Verificar la conexión SSH implementando Trust On First Use
|
# Verificar la conexión SSH implementando Trust On First Use
|
||||||
|
@ -86,11 +93,4 @@ class DeployRsync < Deploy
|
||||||
def source
|
def source
|
||||||
site.deploys.find_by(type: 'DeployLocal').destination
|
site.deploys.find_by(type: 'DeployLocal').destination
|
||||||
end
|
end
|
||||||
|
|
||||||
# Devolver el destino o lanzar un error si no está configurado
|
|
||||||
def destination
|
|
||||||
values[:destination].tap do |d|
|
|
||||||
raise(ArgumentError, 'destination no está configurado') if d.blank?
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue