Class: UffizziCore::Api::Cli::V1::ComposeFile::CliForm
- Inherits:
-
Object
- Object
- UffizziCore::Api::Cli::V1::ComposeFile::CliForm
- Defined in:
- app/forms/uffizzi_core/api/cli/v1/compose_file/cli_form.rb
Instance Method Summary collapse
Methods included from UffizziCore::ApplicationFormWithoutActiveRecord
Instance Method Details
#check_compose_parsed_data ⇒ Object
18 19 20 21 22 23 24 |
# File 'app/forms/uffizzi_core/api/cli/v1/compose_file/cli_form.rb', line 18 def check_compose_parsed_data compose_content = Base64.decode64(content) compose_payload = { compose_file: compose_file } self.compose_data = UffizziCore::ComposeFileService.parse(compose_content, compose_payload) rescue UffizziCore::ComposeFile::ParseError => e errors.add(:content, e.) end |