Class: UffizziCore::Api::Cli::V1::ComposeFile::TemplateForm

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

Constant Summary collapse

SECRETS_ERROR_KEY =
'secret_variables'
TEMPLATE_BUILD_ERROR_KEY =
'template_build_error'

Instance Method Summary collapse

Methods included from UffizziCore::ApplicationFormWithoutActiveRecord

#persisted?

Instance Method Details

#assign_template_attributes!Object



21
22
23
24
25
26
27
28
29
30
31
32
# File 'app/forms/uffizzi_core/api/cli/v1/compose_file/template_form.rb', line 21

def assign_template_attributes!
  self.template_attributes = UffizziCore::ComposeFileService.build_template_attributes(
    compose_data,
    source,
    credentials,
    project,
    compose_dependencies,
    compose_repositories,
  )
rescue StandardError => e
  self.template_build_error = e
end