Class: UffizziCore::ComposeFile::Parsers::Services::SecretsParserService
- Inherits:
-
Object
- Object
- UffizziCore::ComposeFile::Parsers::Services::SecretsParserService
- Defined in:
- app/services/uffizzi_core/compose_file/parsers/services/secrets_parser_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/parsers/services/secrets_parser_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 |