Module: DeploymentPlatform

Included in:
Project
Defined in:
app/models/concerns/deployment_platform.rb

Instance Method Summary collapse

Instance Method Details

#deployment_platform(environment: nil) ⇒ Object

rubocop:disable Gitlab/ModuleWithInstanceVariables


5
6
7
8
9
10
11
# File 'app/models/concerns/deployment_platform.rb', line 5

def deployment_platform(environment: nil)
  return unless self.namespace.certificate_based_clusters_enabled?

  @deployment_platform ||= {}

  @deployment_platform[environment] ||= find_deployment_platform(environment)
end