uffizzi_core 2.1.5 → 2.1.6

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: 5ee784d18da14d2c52e81eb198cf5618e13be8922a87d8eb83a5d981d8e4d1d1
4
- data.tar.gz: b269cb27d6b2f4a7d74ae56ef412a1adf394b14dcc9c6b41db245cca31d20d6d
3
+ metadata.gz: 2fa718cfa69dcdae6e76cb1808c513aa11ed894fdf7afef9bc383cb23c129e00
4
+ data.tar.gz: 28679dfd137f683e33a71b64cfbfd7a5589588aa24f31f2a1a6f5284fa6b71d1
5
5
  SHA512:
6
- metadata.gz: a3927916bb55e90af147c152f7bb86065f0eadbb75ec677e0a1aa69fb395e5c4b1f9d3764e57e9aea3ebb3006d7cf2365f8c444e84561f122670ba3ff72c978a
7
- data.tar.gz: be4cc536ed1bd57888096be85723eb56446f24d760c387baa3f13e6891972f47fd641f41fcd14048465184be13241cea0473b65a79a60d4662464e59fc1bb71b
6
+ metadata.gz: 693edec5e777a1d96df5e3bff4a871091eaf89de12ae94d53d17591dff7e8ec8a61d9cbcf6d8088aafef68cdb434398b4fb3aac1c3c46f07ee10a10585712ac4
7
+ data.tar.gz: 9494c2246be34b70fcbe93f88315df66d08a7b13cb234c1a1552719e66b727093f44ad0f96f11d2b1b24002213fc8c5f00b906f4c7b159c5ad4949bdb4891df1
@@ -19,14 +19,6 @@ class UffizziCore::ActivityItemService
19
19
  create_item!(activity_item_attributes)
20
20
  end
21
21
 
22
- def disable_deployment!(activity_item)
23
- deployment = activity_item.container.deployment
24
-
25
- activity_item.events.create(state: UffizziCore::Event.state.failed)
26
-
27
- UffizziCore::DeploymentService.disable!(deployment)
28
- end
29
-
30
22
  def fail_deployment!(activity_item)
31
23
  deployment = activity_item.container.deployment
32
24
  last_event = activity_item.events.order_by_id.last
@@ -7,7 +7,7 @@ class UffizziCore::ComposeFile::Parsers::Services::CommandParserService
7
7
 
8
8
  case command_data
9
9
  when String
10
- [command_data]
10
+ command_data.split
11
11
  when Array
12
12
  command_data
13
13
  else
@@ -27,13 +27,13 @@ class UffizziCore::DeploymentService
27
27
  deployment_form
28
28
  end
29
29
 
30
- def update_from_compose(compose_file, project, user, deployment, metadata = {})
30
+ def update_from_compose(compose_file, project, user, deployment, metadata)
31
31
  deployment_attributes = ActionController::Parameters.new(compose_file.template.payload)
32
32
 
33
33
  deployment_form = UffizziCore::Api::Cli::V1::Deployment::UpdateForm.new(deployment_attributes)
34
34
  deployment_form.assign_dependences!(project, user)
35
35
  deployment_form.compose_file = compose_file
36
- deployment_form.metadata = metadata
36
+ deployment_form.metadata = metadata || {}
37
37
 
38
38
  ActiveRecord::Base.transaction do
39
39
  deployment.containers.destroy_all
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module UffizziCore
4
- VERSION = '2.1.5'
4
+ VERSION = '2.1.6'
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: 2.1.5
4
+ version: 2.1.6
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: 2023-02-15 00:00:00.000000000 Z
12
+ date: 2023-03-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: aasm