2020-02-19 22:29:06 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2021-08-02 00:54:31 +00:00
|
|
|
# Soportar dominios alternativos.
|
|
|
|
class DeployAlternativeDomain < DeployWww
|
|
|
|
validates :hostname, domainname: true
|
2020-02-19 22:29:06 +00:00
|
|
|
|
2021-08-02 00:54:31 +00:00
|
|
|
# No hay un hostname por defecto
|
|
|
|
#
|
|
|
|
# @return [Nil]
|
|
|
|
def default_hostname; end
|
2020-02-19 22:29:06 +00:00
|
|
|
|
2021-08-02 00:54:31 +00:00
|
|
|
private
|
2020-02-19 22:29:06 +00:00
|
|
|
|
2021-08-02 00:54:31 +00:00
|
|
|
def implements_hostname_validation?
|
|
|
|
true
|
2020-02-19 22:29:06 +00:00
|
|
|
end
|
|
|
|
|
2021-08-02 00:54:31 +00:00
|
|
|
# No hay un hostname por defecto. Debe ser informado por les
|
|
|
|
# usuaries.
|
|
|
|
def default_hostname!; end
|
2020-02-19 22:29:06 +00:00
|
|
|
end
|