Class: Gitlab::CloudConnector::AvailableServicesGenerator
- Inherits:
-
Object
- Object
- Gitlab::CloudConnector::AvailableServicesGenerator
- Defined in:
- lib/gitlab/cloud_connector/available_services_generator.rb
Constant Summary collapse
- GITLAB_REALMS =
%w[gitlab-com self-managed].freeze
- WRONG_GITLAB_REALM_MESSAGE =
'Wrong gitlab_realm. Please use one of the following: %s'
Instance Method Summary collapse
Instance Method Details
#generate(gitlab_realm) ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/gitlab/cloud_connector/available_services_generator.rb', line 12 def generate(gitlab_realm) raise WRONG_GITLAB_REALM_MESSAGE % GITLAB_REALMS.join(', ') unless GITLAB_REALMS.include?(gitlab_realm) { 'services' => generate_services_config(gitlab_realm) } end |