uffizzi_core 2.1.5 → 2.1.6
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2fa718cfa69dcdae6e76cb1808c513aa11ed894fdf7afef9bc383cb23c129e00
|
4
|
+
data.tar.gz: 28679dfd137f683e33a71b64cfbfd7a5589588aa24f31f2a1a6f5284fa6b71d1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 693edec5e777a1d96df5e3bff4a871091eaf89de12ae94d53d17591dff7e8ec8a61d9cbcf6d8088aafef68cdb434398b4fb3aac1c3c46f07ee10a10585712ac4
|
7
|
+
data.tar.gz: 9494c2246be34b70fcbe93f88315df66d08a7b13cb234c1a1552719e66b727093f44ad0f96f11d2b1b24002213fc8c5f00b906f4c7b159c5ad4949bdb4891df1
|
@@ -19,14 +19,6 @@ class UffizziCore::ActivityItemService
|
|
19
19
|
create_item!(activity_item_attributes)
|
20
20
|
end
|
21
21
|
|
22
|
-
def disable_deployment!(activity_item)
|
23
|
-
deployment = activity_item.container.deployment
|
24
|
-
|
25
|
-
activity_item.events.create(state: UffizziCore::Event.state.failed)
|
26
|
-
|
27
|
-
UffizziCore::DeploymentService.disable!(deployment)
|
28
|
-
end
|
29
|
-
|
30
22
|
def fail_deployment!(activity_item)
|
31
23
|
deployment = activity_item.container.deployment
|
32
24
|
last_event = activity_item.events.order_by_id.last
|
@@ -27,13 +27,13 @@ class UffizziCore::DeploymentService
|
|
27
27
|
deployment_form
|
28
28
|
end
|
29
29
|
|
30
|
-
def update_from_compose(compose_file, project, user, deployment, metadata
|
30
|
+
def update_from_compose(compose_file, project, user, deployment, metadata)
|
31
31
|
deployment_attributes = ActionController::Parameters.new(compose_file.template.payload)
|
32
32
|
|
33
33
|
deployment_form = UffizziCore::Api::Cli::V1::Deployment::UpdateForm.new(deployment_attributes)
|
34
34
|
deployment_form.assign_dependences!(project, user)
|
35
35
|
deployment_form.compose_file = compose_file
|
36
|
-
deployment_form.metadata = metadata
|
36
|
+
deployment_form.metadata = metadata || {}
|
37
37
|
|
38
38
|
ActiveRecord::Base.transaction do
|
39
39
|
deployment.containers.destroy_all
|
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.6
|
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-02
|
12
|
+
date: 2023-03-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: aasm
|