Class: CloudSeed::GoogleCloud::GetCloudsqlInstancesService
- Inherits:
-
BaseService
- Object
- BaseService
- BaseService
- CloudSeed::GoogleCloud::GetCloudsqlInstancesService
- Defined in:
- app/services/cloud_seed/google_cloud/get_cloudsql_instances_service.rb
Constant Summary collapse
- CLOUDSQL_KEYS =
%w[GCP_PROJECT_ID GCP_CLOUDSQL_INSTANCE_NAME GCP_CLOUDSQL_VERSION].freeze
Constants inherited from BaseService
BaseService::UnauthorizedError
Instance Attribute Summary
Attributes inherited from BaseService
#current_user, #params, #project
Instance Method Summary collapse
Methods inherited from BaseService
Methods included from BaseServiceUtility
#deny_visibility_level, #event_service, #log_error, #log_info, #notification_service, #system_hook_service, #todo_service, #visibility_level
Methods included from Gitlab::Allowable
Constructor Details
This class inherits a constructor from BaseService
Instance Method Details
#execute ⇒ Object
8 9 10 11 12 13 14 15 16 17 |
# File 'app/services/cloud_seed/google_cloud/get_cloudsql_instances_service.rb', line 8 def execute group_vars_by_environment(CLOUDSQL_KEYS).map do |environment_scope, value| { ref: environment_scope, gcp_project: value['GCP_PROJECT_ID'], instance_name: value['GCP_CLOUDSQL_INSTANCE_NAME'], version: value['GCP_CLOUDSQL_VERSION'] } end end |