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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0be6eaeb2fd7c5c088b90f3b37983fa859d281620bbcc8c887159a22e8aaa1b8
4
- data.tar.gz: 9b59b8669defa19eec6af2946c44b2ff0dff4c2a5b01497685923e09b5779f24
3
+ metadata.gz: eba7ecf67d569ffb2287bab5ccda1eb17d475fe2548836c1ead5ff0baf9677a5
4
+ data.tar.gz: 8b3315133ecd7c5e4810535d97c564797de3d5265f7b010a24ecafc612156ee4
5
5
  SHA512:
6
- metadata.gz: 103a4642983b04c15ed353be27367a317f7de14593676080ee493328756d17549a8717c647cabcef7739ce6000fc09649000f5ce20c7c6e6a0c1cc8857546c0c
7
- data.tar.gz: 133202293bc169a56890081c13a8cf866ce77ac3c2c2a284a21b68f4010a00bd478d3eb9b636182ebc490bf210c4cf680dbe83205207d8847fd594b427af1733
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].filter { |s| s[:status] != 'INACTIVE' }
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.filter { |c| c[:status] != 'INACTIVE' }.length == 1
127
+ clusters.count { |c| c[:status] != 'INACTIVE' } == 1
128
128
  end
129
129
 
130
130
  def ensure_ecs_roles_exists!
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EcsDeployCli
4
- VERSION = '0.5.0'
4
+ VERSION = '0.5.1'
5
5
  end
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.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mònade