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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 28217ab4d8ccda5d3a2471d23aae826cbe4656f98b6432a20cfbdd5c384ad2cf
|
4
|
+
data.tar.gz: cccf9283ffe25359864a8a871455981203f1cd7f30c72788e0c12f845f9b40ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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:
|
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:
|
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}\"!"
|
@@ -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)
|