ecs_deploy_cli 0.2.0 → 0.2.1

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: de429c09d039ddd636e85d23ec40bc20d7e91a09af10fefcc4124086494a8127
4
- data.tar.gz: 57e24e217b08edf956a8b43894486a6db702756fedd2016b13e635fa9f5c2f3a
3
+ metadata.gz: 28217ab4d8ccda5d3a2471d23aae826cbe4656f98b6432a20cfbdd5c384ad2cf
4
+ data.tar.gz: cccf9283ffe25359864a8a871455981203f1cd7f30c72788e0c12f845f9b40ec
5
5
  SHA512:
6
- metadata.gz: cecc078f5afcd85d0ca3600fd8d7db360dbf99d3cf27901aca2b15f15500864cc860de616b4bcf49bc29024b0301e3a6af41bb74808e1a94e216d45f1076346c
7
- data.tar.gz: 4c66c16a9948dd255ca23f626341a3b052fda205297e71f8ffe185d4e3add1cca7dfe18e7d69800c735db55c606db3275a08a41f63bdafae9eba7a0a88de0abe
6
+ metadata.gz: db6f191a11e22dc5f249b4d93e4e04a4a492d5576384f65282206bee0ab5872dfe033f2f0412632d8780259a1e49c2f52ec44069b297fa681a4ba17f5dbb8438
7
+ data.tar.gz: a238312dbd603b9be8ea0387f278c60dc1b70465524f70d1c91c5f8567f2c9f9fb7721538f8474d8182120dcd643eb4f144905b09891580ac51d720568a735bc
@@ -13,7 +13,7 @@ module EcsDeployCli
13
13
  EcsDeployCli.logger.info '---'
14
14
  EcsDeployCli.logger.info "Task: #{task_name}"
15
15
 
16
- result = ecs_client.describe_task_definition(task_definition: "#{task_name}").to_h
16
+ result = ecs_client.describe_task_definition(task_definition: task_name).to_h
17
17
 
18
18
  current = result[:task_definition].except(:revision, :status, :registered_at, :registered_by, :requires_attributes, :task_definition_arn)
19
19
 
@@ -15,7 +15,7 @@ module EcsDeployCli
15
15
  ecs_client.update_service(
16
16
  cluster: config[:cluster],
17
17
  service: service_name,
18
- task_definition: "#{task_definition[:family]}:#{task_name}"
18
+ task_definition: task_name
19
19
  )
20
20
  wait_for_deploy(service_name, task_name, timeout: timeout)
21
21
  EcsDeployCli.logger.info "Deployed service \"#{service_name}\"!"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EcsDeployCli
4
- VERSION = '0.2.0'
4
+ VERSION = '0.2.1'
5
5
  end
@@ -142,7 +142,11 @@ describe EcsDeployCli::Runner do
142
142
 
143
143
  it '#update_services!' do
144
144
  expect(mock_ecs_client).to receive(:register_task_definition).at_least(:once).and_return({ task_definition: { family: 'some', revision: '1' } })
145
- expect(mock_ecs_client).to receive(:update_service)
145
+ expect(mock_ecs_client).to receive(:update_service).with(
146
+ cluster: 'yourproject-cluster',
147
+ service: 'yourproject-service',
148
+ task_definition: 'some:1'
149
+ )
146
150
  expect(mock_ecs_client).to receive(:wait_until)
147
151
 
148
152
  expect_any_instance_of(EcsDeployCli::Runners::Base).to receive(:ecs_client).at_least(:once).and_return(mock_ecs_client)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ecs_deploy_cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mònade