uffizzi_core 0.3.1 → 0.3.2
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: 4b8ca3af8c38a71fa5553b167c12e7e687798301b53e49763842060c9e84e5cf
|
4
|
+
data.tar.gz: 540f925f4a4670f28aba1cc733b8d2e5e583505fb0e41de48d08106fac683204
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3c8d5d89bb09311641a0a15a372a5bc27bd9dc61e5f5d13a648eb9f3285e602600ac32bc60ec0cc7bfef129fa495f2c9e5b7cbefa98397386fb642a1bba214cd
|
7
|
+
data.tar.gz: 8d388c411e83d1e9d9da2c92c8dde788a5212c398e2c8a44aec41392a4034c0ce2b5d8e88659f3c9bdfb94e4c1f48dd369a87c68e11defa849449823161a51cb
|
@@ -13,6 +13,12 @@ module UffizziCore::DependencyInjectionConcern
|
|
13
13
|
module_class(:github)
|
14
14
|
end
|
15
15
|
|
16
|
+
def password_protection_module
|
17
|
+
return unless module_exists?(:password_protection)
|
18
|
+
|
19
|
+
module_class(:password_protection)
|
20
|
+
end
|
21
|
+
|
16
22
|
private
|
17
23
|
|
18
24
|
def module_exists?(module_name)
|
@@ -2,6 +2,8 @@
|
|
2
2
|
|
3
3
|
class UffizziCore::ControllerService
|
4
4
|
class << self
|
5
|
+
include UffizziCore::DependencyInjectionConcern
|
6
|
+
|
5
7
|
def apply_config_file(deployment, config_file)
|
6
8
|
body = {
|
7
9
|
config_file: UffizziCore::Controller::ApplyConfigFile::ConfigFileSerializer.new(config_file).as_json,
|
@@ -53,6 +55,10 @@ class UffizziCore::ControllerService
|
|
53
55
|
deployment_url: UffizziCore::DeploymentService.build_preview_url(deployment),
|
54
56
|
}
|
55
57
|
|
58
|
+
if password_protection_module.present?
|
59
|
+
body = password_protection_module.add_password_configuration(body, deployment.project_id)
|
60
|
+
end
|
61
|
+
|
56
62
|
controller_client.deploy_containers(deployment_id: deployment.id, body: body)
|
57
63
|
end
|
58
64
|
|
data/lib/uffizzi_core/version.rb
CHANGED