ecs_deploy_cli 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ecs_deploy_cli/runners/setup.rb +2 -2
- data/lib/ecs_deploy_cli/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eba7ecf67d569ffb2287bab5ccda1eb17d475fe2548836c1ead5ff0baf9677a5
|
4
|
+
data.tar.gz: 8b3315133ecd7c5e4810535d97c564797de3d5265f7b010a24ecafc612156ee4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dd116db322654227906aaaf343abb10a60f2602b156ac4e961306d06db6ce8b3c88a005c2bdd7c996a6641977d07bee9ee2b0e4d4c54aeaa2c7f5724f53af58b
|
7
|
+
data.tar.gz: 7c25e31633ce3c69e9c95b7f1530df90da0dffe373334df2ac6bcb785cbd34e4a7dbee225556dc85ac42bc17a23d183bf6104219dc555231521998b89607a66d
|
@@ -53,7 +53,7 @@ module EcsDeployCli
|
|
53
53
|
|
54
54
|
def setup_services!(services, resolved_tasks:)
|
55
55
|
services.each do |service_name, service_definition|
|
56
|
-
existing_services = ecs_client.describe_services(cluster: config[:cluster], services: [service_name]).to_h[:services].
|
56
|
+
existing_services = ecs_client.describe_services(cluster: config[:cluster], services: [service_name]).to_h[:services].select { |s| s[:status] != 'INACTIVE' }
|
57
57
|
if existing_services.any?
|
58
58
|
EcsDeployCli.logger.info "Service #{service_name} already created, skipping."
|
59
59
|
next
|
@@ -124,7 +124,7 @@ module EcsDeployCli
|
|
124
124
|
def cluster_exists?
|
125
125
|
clusters = ecs_client.describe_clusters(clusters: [config[:cluster]]).to_h[:clusters]
|
126
126
|
|
127
|
-
clusters.
|
127
|
+
clusters.count { |c| c[:status] != 'INACTIVE' } == 1
|
128
128
|
end
|
129
129
|
|
130
130
|
def ensure_ecs_roles_exists!
|