5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-07-03 13:46:09 +00:00
panel/app/models/deploy_alternative_domain.rb

22 lines
410 B
Ruby
Raw Permalink Normal View History

2020-02-19 22:29:06 +00:00
# frozen_string_literal: true
# Soportar dominios alternativos.
class DeployAlternativeDomain < DeployWww
validates :hostname, domainname: true
2020-02-19 22:29:06 +00:00
# No hay un hostname por defecto
#
# @return [Nil]
def default_hostname; end
2020-02-19 22:29:06 +00:00
private
2020-02-19 22:29:06 +00:00
def implements_hostname_validation?
true
2020-02-19 22:29:06 +00:00
end
# 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