Class: UffizziCore::Api::Cli::V1::Deployment::UpdateForm

Inherits:
Deployment
  • Object
show all
Includes:
UffizziCore::ApplicationForm
Defined in:
app/forms/uffizzi_core/api/cli/v1/deployment/update_form.rb

Instance Method Summary collapse

Methods included from MassAssignmentControlConcern

#assign_attributes

Instance Method Details

#assign_dependences!(project, user) ⇒ Object



51
52
53
54
55
56
57
58
59
60
61
62
63
# File 'app/forms/uffizzi_core/api/cli/v1/deployment/update_form.rb', line 51

def assign_dependences!(project, user)
  self.project = project

  self.containers = containers.map do |container|
    container.repo.project = project if !container.repo.nil?

    container
  end

  self.deployed_by = user

  self
end