5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-16 16:01:41 +00:00

el método es público

This commit is contained in:
f 2022-04-06 18:26:41 -03:00
parent 8edc9b460a
commit dcbd1c02ac

View file

@ -16,6 +16,13 @@ class DeployRsync < Deploy
0
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
# Verificar la conexión SSH implementando Trust On First Use
@ -86,11 +93,4 @@ class DeployRsync < Deploy
def source
site.deploys.find_by(type: 'DeployLocal').destination
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