Class: Gitlab::BackgroundMigration::RemoteDevelopment::WorkspaceOperations::Create::DesiredConfig::BmDesiredConfigYamlParser
- Inherits:
-
Object
- Object
- Gitlab::BackgroundMigration::RemoteDevelopment::WorkspaceOperations::Create::DesiredConfig::BmDesiredConfigYamlParser
- Defined in:
- lib/gitlab/background_migration/remote_development/workspace_operations/create/desired_config/bm_desired_config_yaml_parser.rb
Overview
rubocop:disable Migration/BatchedMigrationBaseClass – This is not a migration file class so we do not need to inherit from BatchedMigrationJob
Class Method Summary collapse
Class Method Details
.parse(context) ⇒ Hash
12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/gitlab/background_migration/remote_development/workspace_operations/create/desired_config/bm_desired_config_yaml_parser.rb', line 12 def self.parse(context) context => { desired_config_yaml: desired_config_yaml } desired_config_array = YAML.load_stream(desired_config_yaml).map(&:deep_symbolize_keys) context.merge({ desired_config_array: desired_config_array }) end |