Class: UpdateContainerRegistryInfoService

Inherits:
Object
  • Object
show all
Defined in:
app/services/update_container_registry_info_service.rb

Instance Method Summary collapse

Instance Method Details

#executeObject



4
5
6
7
8
9
10
11
12
13
14
15
# File 'app/services/update_container_registry_info_service.rb', line 4

def execute
  info = fetch_registry_info

  return unless info

  Gitlab::CurrentSettings.update!(
    container_registry_vendor: info[:vendor] || '',
    container_registry_version: info[:version] || '',
    container_registry_features: info[:features] || [],
    container_registry_db_enabled: info[:db_enabled] || false
  )
end