Method: ClowderCommonRuby::Config#private_dependency_endpoints

Defined in:
lib/clowder-common-ruby/config.rb

#private_dependency_endpointsObject

nested map using [appName][deploymentName]

for the private services of requested applications.


76
77
78
79
80
81
82
83
84
85
# File 'lib/clowder-common-ruby/config.rb', line 76

def private_dependency_endpoints
  @private_dependency_endpoints ||= {}.tap do |priv_endpts|
    privateEndpoints.each do |endpoint|
      next if endpoint.app.nil? || endpoint.name.nil?

      priv_endpts[endpoint.app]                = {} unless priv_endpts.include?(endpoint.app)
      priv_endpts[endpoint.app][endpoint.name] = endpoint
    end
  end
end