Class: UffizziCore::Api::Cli::V1::ComposeFile::CliForm

Inherits:
Object
  • Object
show all
Includes:
UffizziCore::ApplicationFormWithoutActiveRecord
Defined in:
app/forms/uffizzi_core/api/cli/v1/compose_file/cli_form.rb

Instance Method Summary collapse

Methods included from UffizziCore::ApplicationFormWithoutActiveRecord

#persisted?

Instance Method Details

#check_compose_parsed_dataObject



16
17
18
19
20
21
# File 'app/forms/uffizzi_core/api/cli/v1/compose_file/cli_form.rb', line 16

def check_compose_parsed_data
  compose_content = Base64.decode64(content)
  self.compose_data = UffizziCore::ComposeFileService.parse(compose_content)
rescue UffizziCore::ComposeFile::ParseError => e
  errors.add(:content, e.message)
end