Commit fc8edbe1 authored by Lin Jen-Shin's avatar Lin Jen-Shin

Remove duplicated method and follow CE changes

parent 04554eb7
module DeploymentPlatform
def deployment_platform(environment: nil)
def deployment_platform
@deployment_platform ||=
find_cluster_platform_kubernetes ||
find_kubernetes_service_integration ||
......
......@@ -137,10 +137,6 @@ class Environment < ActiveRecord::Base
end
end
def deployment_platform
project.deployment_platform(environment: self)
end
def has_terminals?
deployment_platform.present? && available? && last_deployment.present?
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment