Just try to detect and assign once

This commit is contained in:
Lin Jen-Shin 2018-01-05 15:32:31 +08:00
parent f7afb14c11
commit 8b3b28b8d8
1 changed files with 4 additions and 3 deletions

View File

@ -1,8 +1,9 @@
module DeploymentPlatform
def deployment_platform
@deployment_platform ||= find_cluster_platform_kubernetes
@deployment_platform ||= find_kubernetes_service_integration
@deployment_platform ||= build_cluster_and_deployment_platform
@deployment_platform ||=
find_cluster_platform_kubernetes ||
find_kubernetes_service_integration ||
build_cluster_and_deployment_platform
end
private