Permitir asignar un hostname al iniciar
This commit is contained in:
parent
64a2dc146d
commit
f8f9e722be
1 changed files with 3 additions and 2 deletions
|
@ -118,11 +118,12 @@ class Deploy < ApplicationRecord
|
|||
|
||||
private
|
||||
|
||||
# Genera el hostname
|
||||
# Genera el hostname pero permitir la inicialización del valor. Luego
|
||||
# validamos que sea el formato correcto.
|
||||
#
|
||||
# @return [Boolean]
|
||||
def default_hostname!
|
||||
self.hostname = default_hostname
|
||||
self.hostname ||= default_hostname
|
||||
true
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue