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: f9863f1734f5ee6937e8b498f95a78ff853b1b546c9f33a30578755c2a580869
4
- data.tar.gz: 036277c7c8913e0cfda95f5bf413296dd65bccf9d11c7d8f47b0ca70e26da661
3
+ metadata.gz: 25654d45dce9f26feb5a3cca55a5891bb389216e749512b2900898bec4a8da0b
4
+ data.tar.gz: cb7784c03bcffb216adc343ae30e0ef0c51e3038791da4fe0229b86179cdc8e9
5
5
  SHA512:
6
- metadata.gz: cbfe3b99fb50fd90bf91d8894eb89104d7239ac58a27dfd0a60e022c9d525995586a074b236f642b85c903d9c5d21f2837610feeef61ade40357d1e55bb649bd
7
- data.tar.gz: da2f031e15feb3b3350e4a42bed43f465b581854a77f402b9365fad976f1f000ac53066618224a1521dea0a0d0e0dcdcafd4888ac183d5c955ee820974f220ad
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::STATE_DISABLED }
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::STATE_ENABLED
23
+ container.aasm(:continuously_deploy).current_state == UffizziCore::Container::STATE_CD_ENABLED
24
24
  end
25
25
 
26
26
  def valid_memory_limit?(container)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module UffizziCore
4
- VERSION = '0.7.0'
4
+ VERSION = '0.7.1'
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.7.0
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-22 00:00:00.000000000 Z
12
+ date: 2022-08-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: aasm