uffizzi_core 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/services/uffizzi_core/deployment_service.rb +10 -3
- 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: c77ce0a84cac9c658e95ca303c65b90bed161bdd6c588c18a126dab2e58175ab
|
4
|
+
data.tar.gz: b8c916fd4b1beaf5354d1e4dda147e38d5b4431e7ec0feea880cf36041a445d4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0f1d7cc3cea3c4fda4615d67d8606bd122997ed96260f595358d5942c58222a3c38814466d7c3c6b7005eeaec77cb81bc48436bcff1c73228c0b6354d2897c49
|
7
|
+
data.tar.gz: f9ca337c51fffd381a7c53744e59e60917ecd541fafd63cd94b5a5618dd5f32eab8f70cc6fbe6c153765eb47dbb9011875b5a45efd5882794fc5d6616e10076c
|
@@ -38,9 +38,13 @@ class UffizziCore::DeploymentService
|
|
38
38
|
|
39
39
|
ActiveRecord::Base.transaction do
|
40
40
|
deployment.containers.destroy_all
|
41
|
-
deployment.compose_file.destroy! if deployment.compose_file
|
41
|
+
deployment.compose_file.destroy! if deployment.compose_file&.kind&.temporary?
|
42
42
|
|
43
|
-
deployment.update!(
|
43
|
+
deployment.update!(
|
44
|
+
containers: deployment_form.containers,
|
45
|
+
compose_file_id: compose_file.id,
|
46
|
+
creation_source: UffizziCore::Deployment.creation_source.compose_file_manual,
|
47
|
+
)
|
44
48
|
end
|
45
49
|
|
46
50
|
deployment
|
@@ -304,7 +308,10 @@ class UffizziCore::DeploymentService
|
|
304
308
|
subdomain_length_limit = Settings.deployment.subdomain.length_limit
|
305
309
|
return rfc_subdomain if rfc_subdomain.length <= subdomain_length_limit
|
306
310
|
|
307
|
-
rfc_subdomain.slice(0, subdomain_length_limit)
|
311
|
+
sliced_subdomain = rfc_subdomain.slice(0, subdomain_length_limit)
|
312
|
+
return sliced_subdomain.chop if sliced_subdomain.end_with?('-')
|
313
|
+
|
314
|
+
sliced_subdomain
|
308
315
|
end
|
309
316
|
end
|
310
317
|
end
|
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: 0.4.
|
4
|
+
version: 0.4.2
|
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: 2022-08-
|
12
|
+
date: 2022-08-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: aasm
|