5
6
7
8
9
10
11
12
13
14
15
16
17
|
# File 'app/services/uffizzi_core/compose_file/services_options_service.rb', line 5
def parse(services, global_configs_data, global_secrets_data, compose_payload)
raise UffizziCore::ComposeFile::ParseError, I18n.t('compose.no_services') if services.nil? || services.keys.empty?
services.keys.map do |service|
service_data = prepare_service_data(service, services.fetch(service), global_configs_data, global_secrets_data, compose_payload)
if service_data[:image].blank? && service_data[:build].blank?
raise UffizziCore::ComposeFile::ParseError, I18n.t('compose.image_build_no_specified', value: service)
end
service_data
end
end
|