uffizzi_core 2.1.19 → 2.1.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/clients/uffizzi_core/controller_client.rb +0 -4
- data/app/lib/uffizzi_core/concerns/models/deployment.rb +4 -1
- data/app/models/uffizzi_core/deployment.rb +0 -3
- data/app/services/uffizzi_core/controller_service.rb +0 -5
- data/app/services/uffizzi_core/deployment_service.rb +1 -1
- data/lib/uffizzi_core/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7ddf1cdf5ca4493e22183f6af9fc269b6e84e75cbb069362837cd760c92c1324
|
4
|
+
data.tar.gz: 25d66bc0bb87075efb2de98620d7f63ac981edda10d4648d57ffb7fd0bbd7623
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 69caa51097ef93e07376fb2dc80c8a0295ae319bc25a7fc4b91fd7f60370669859629834791787633c5610889f3fa383810583d9029435115234b5dac3e152a4
|
7
|
+
data.tar.gz: 90823bbec114d8cec8f405c9c7081ca4cb8e039c74ff00ec7d125ec600e0a264cfb4560dfc954853b08d6f09364c85a377a9884818220df428ebd782ada7a95c
|
@@ -19,10 +19,6 @@ class UffizziCore::ControllerClient
|
|
19
19
|
connection.post("/deployments/#{deployment_id}", body)
|
20
20
|
end
|
21
21
|
|
22
|
-
def update_deployment(deployment_id:, body:)
|
23
|
-
connection.put("/deployments/#{deployment_id}", body)
|
24
|
-
end
|
25
|
-
|
26
22
|
def delete_deployment(deployment_id:)
|
27
23
|
connection.delete("/deployments/#{deployment_id}")
|
28
24
|
end
|
@@ -12,7 +12,7 @@ module UffizziCore::Concerns::Models::Deployment
|
|
12
12
|
|
13
13
|
self.table_name = UffizziCore.table_names[:deployments]
|
14
14
|
|
15
|
-
enumerize :kind, in: [:standard
|
15
|
+
enumerize :kind, in: [:standard], predicates: true, default: :standard
|
16
16
|
|
17
17
|
belongs_to :project, touch: true
|
18
18
|
belongs_to :deployed_by, class_name: UffizziCore::User.name, foreign_key: :deployed_by_id, optional: true
|
@@ -26,6 +26,9 @@ module UffizziCore::Concerns::Models::Deployment
|
|
26
26
|
has_one :ingress_container, -> { where(receive_incoming_requests: true) }, class_name: UffizziCore::Container.name
|
27
27
|
validates :kind, presence: true
|
28
28
|
|
29
|
+
enumerize :creation_source, in: [:manual, :demo, :continuous_preview, :compose_file_manual, :compose_file_continuous_preview,
|
30
|
+
:github_actions], predicates: true, scope: true, default: :manual
|
31
|
+
|
29
32
|
accepts_nested_attributes_for :containers, allow_destroy: true
|
30
33
|
|
31
34
|
after_destroy_commit :clean
|
@@ -17,11 +17,6 @@ class UffizziCore::ControllerService
|
|
17
17
|
controller_client.create_deployment(deployment_id: deployment.id, body: body)
|
18
18
|
end
|
19
19
|
|
20
|
-
def update_deployment(deployment)
|
21
|
-
body = UffizziCore::Controller::UpdateDeployment::DeploymentSerializer.new(deployment).as_json
|
22
|
-
controller_client.update_deployment(deployment_id: deployment.id, body: body)
|
23
|
-
end
|
24
|
-
|
25
20
|
def delete_deployment(deployment_id)
|
26
21
|
controller_client.delete_deployment(deployment_id: deployment_id)
|
27
22
|
end
|
@@ -19,7 +19,7 @@ class UffizziCore::DeploymentService
|
|
19
19
|
deployment_form = UffizziCore::Api::Cli::V1::Deployment::CreateForm.new(deployment_attributes)
|
20
20
|
deployment_form.assign_dependences!(project, user)
|
21
21
|
deployment_form.compose_file = compose_file
|
22
|
-
deployment_form.creation_source = params[:creation_source] || UffizziCore::Deployment
|
22
|
+
deployment_form.creation_source = params[:creation_source] || UffizziCore::Deployment.creation_source.compose_file_manual
|
23
23
|
deployment_form.metadata = params[:metadata] || {}
|
24
24
|
|
25
25
|
run_deployment_creation_tasks(deployment_form) if deployment_form.save
|
data/lib/uffizzi_core/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: uffizzi_core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.21
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josh Thurman
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2023-04-
|
12
|
+
date: 2023-04-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: aasm
|