Class: UffizziCore::Deployment::DomainService
Class Method Summary
collapse
ci_module, ci_session, controller_settings_service, deployment_memory_module, domain_module, find_build_parser_module, find_ingress_parser_module, find_volume_parser_module, notification_module, password_protection_module, template_memory_module, user_access_module
Class Method Details
.build_subdomain(deployment) ⇒ Object
7
8
9
10
11
12
|
# File 'app/services/uffizzi_core/deployment/domain_service.rb', line 7
def build_subdomain(deployment)
return domain_module.build_subdomain(deployment) if domain_module.present?
return build_docker_continuous_preview_subdomain(deployment) if deployment&.continuous_preview_payload&.fetch('docker', nil).present?
build_default_subdomain(deployment)
end
|
.update_subdomain!(deployment) ⇒ Object
14
15
16
17
|
# File 'app/services/uffizzi_core/deployment/domain_service.rb', line 14
def update_subdomain!(deployment)
deployment.subdomain = build_subdomain(deployment)
deployment.save!
end
|