uffizzi_core 0.3.1 → 0.3.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3e2b2cafe23575e7c21cd2108009cf69b9f96684929648f20aabdfe15f4f174b
4
- data.tar.gz: 48501037f9780aaede4255937497fe7a4e62ff74eaeebf5d35f38324c74bccd3
3
+ metadata.gz: 4b8ca3af8c38a71fa5553b167c12e7e687798301b53e49763842060c9e84e5cf
4
+ data.tar.gz: 540f925f4a4670f28aba1cc733b8d2e5e583505fb0e41de48d08106fac683204
5
5
  SHA512:
6
- metadata.gz: 53784fee926eda545a859338847377dbbffdbfe45b81ab1beb8a461dddb9d9d87393f6a29d936f0b96dc7b33e45db1019b3ca14f4d89cc06b31054d5bace04c3
7
- data.tar.gz: 1c29d8d4c7077f640dfe253faa7ef2c3417db14745ecff19d749fd4daa3743e6c626c670eb4a40e00d78a932c206e766d7bdd45eed04e799d51b917d8289e5fa
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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module UffizziCore
4
- VERSION = '0.3.1'
4
+ VERSION = '0.3.2'
5
5
  end
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.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh Thurman