Class: UffizziCore::ComposeFile::ServicesOptions::SecretsService
- Inherits:
-
Object
- Object
- UffizziCore::ComposeFile::ServicesOptions::SecretsService
- Defined in:
- app/services/uffizzi_core/compose_file/services_options/secrets_service.rb
Class Method Summary collapse
Class Method Details
.parse(secrets, global_secrets_data) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'app/services/uffizzi_core/compose_file/services_options/secrets_service.rb', line 5 def parse(secrets, global_secrets_data) return [] if secrets.nil? secrets.map do |secret| variable_name = if secret.is_a?(String) process_short_syntax(secret, global_secrets_data) else raise UffizziCore::ComposeFile::ParseError, I18n.t('compose.invalid_type', option: :secrets) end variable_name end end |