5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-16 23:26:22 +00:00

vincular a un idioma según el dominio

closes #4545
This commit is contained in:
f 2022-02-10 15:18:49 -03:00
parent 36cf199548
commit aa3cbc209e

View file

@ -0,0 +1,12 @@
# frozen_string_literal: true
# Soportar dominios localizados
class DeployLocalizedDomain < DeployAlternativeDomain
store :values, accessors: %i[hostname locale], coder: JSON
# Generar un link simbólico del sitio principal al alternativo
def deploy
File.symlink?(destination) ||
File.symlink(File.join(site.hostname, locale), destination).zero?
end
end