Class: UffizziCore::ComposeFile::ServicesOptions::CommandService
- Inherits:
-
Object
- Object
- UffizziCore::ComposeFile::ServicesOptions::CommandService
- Defined in:
- app/services/uffizzi_core/compose_file/services_options/command_service.rb
Class Method Summary collapse
Class Method Details
.parse(command_data) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'app/services/uffizzi_core/compose_file/services_options/command_service.rb', line 5 def parse(command_data) return nil if command_data.blank? case command_data when String [command_data] when Array command_data else raise UffizziCore::ComposeFile::ParseError, I18n.t('compose.invalid_type', option: :command) end end |