uffizzi_core 0.7.0 → 0.7.1
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 25654d45dce9f26feb5a3cca55a5891bb389216e749512b2900898bec4a8da0b
|
|
4
|
+
data.tar.gz: cb7784c03bcffb216adc343ae30e0ef0c51e3038791da4fe0229b86179cdc8e9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c3b6ae9974961ae5d39e723264e6c72fa0f4dfa9f99085a6550a98af67afd6ddcbd92f98e7f815ff602bb7f6a3144d2f87ac9d61a58f228099b9dedd537ce6be
|
|
7
|
+
data.tar.gz: 572bcfcc9d1e3396d721a83a60c703db10c0b3848031e35b63aa26065b67ceb6fc11bb5278fd6b383e4686a5885758d45d69b0a3c3314cda4f6d93fc3a81d93b
|
|
@@ -45,7 +45,7 @@ module UffizziCore::Concerns::Models::Container
|
|
|
45
45
|
validates :command, 'uffizzi_core/image_command_args': true, allow_nil: true
|
|
46
46
|
validates :tag, presence: true
|
|
47
47
|
|
|
48
|
-
aasm :continuously_deploy, column: :continuously_deploy do
|
|
48
|
+
aasm :continuously_deploy, column: :continuously_deploy, namespace: :cd do
|
|
49
49
|
state :disabled, initial: true
|
|
50
50
|
state :enabled
|
|
51
51
|
end
|
|
@@ -27,6 +27,10 @@ module UffizziCore::Concerns::Models::Credential
|
|
|
27
27
|
event :unauthorize do
|
|
28
28
|
transitions from: [:not_connected, :active], to: :unauthorized
|
|
29
29
|
end
|
|
30
|
+
|
|
31
|
+
event :disconnect do
|
|
32
|
+
transitions from: [:active, :unauthorized], to: :not_connected
|
|
33
|
+
end
|
|
30
34
|
end
|
|
31
35
|
|
|
32
36
|
def github_container_registry?
|
|
@@ -59,7 +63,7 @@ module UffizziCore::Concerns::Models::Credential
|
|
|
59
63
|
account.projects.find_each do |project|
|
|
60
64
|
project.deployments.find_each do |deployment|
|
|
61
65
|
containers = deployment.containers
|
|
62
|
-
attributes = { continuously_deploy: UffizziCore::Container::
|
|
66
|
+
attributes = { continuously_deploy: UffizziCore::Container::STATE_CD_DISABLED }
|
|
63
67
|
|
|
64
68
|
containers.with_docker_hub_repo.update_all(attributes) if docker_hub?
|
|
65
69
|
end
|
|
@@ -20,7 +20,7 @@ class UffizziCore::ContainerService
|
|
|
20
20
|
end
|
|
21
21
|
|
|
22
22
|
def continuously_deploy_enabled?(container)
|
|
23
|
-
container.aasm(:continuously_deploy).current_state == UffizziCore::Container::
|
|
23
|
+
container.aasm(:continuously_deploy).current_state == UffizziCore::Container::STATE_CD_ENABLED
|
|
24
24
|
end
|
|
25
25
|
|
|
26
26
|
def valid_memory_limit?(container)
|
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.7.
|
|
4
|
+
version: 0.7.1
|
|
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-23 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: aasm
|