Class: GoogleCloud::GetCloudsqlInstancesService
- Inherits:
-
BaseService
- Object
- BaseService
- BaseService
- GoogleCloud::GetCloudsqlInstancesService
- Defined in:
- app/services/google_cloud/get_cloudsql_instances_service.rb
Constant Summary collapse
- CLOUDSQL_KEYS =
%w[GCP_PROJECT_ID GCP_CLOUDSQL_INSTANCE_NAME GCP_CLOUDSQL_VERSION].freeze
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
7 8 9 10 11 12 13 14 15 16 |
# File 'app/services/google_cloud/get_cloudsql_instances_service.rb', line 7 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 |