knuckle_cluster 2.3.1 → 2.3.2

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
  SHA1:
3
- metadata.gz: 2c1f2f78ec6c696617524b8be22e0a8e949bfc35
4
- data.tar.gz: cceeab9f31f87b0e482d5e7962ab47975f69eb67
3
+ metadata.gz: 2343d5fb38d64891674b60a8ffd6b2c69a148442
4
+ data.tar.gz: d3a0c2f602a05b84c28322e8eb9f871cd298283c
5
5
  SHA512:
6
- metadata.gz: d23cf89b1eae74b4a0828de5fe3e062ebf9a5b1453d677f3bc7a1facb6cc8cb1af0288298b87f69209267146db008e5e3f1750a188070190210a57e0f72d7c40
7
- data.tar.gz: b2cadfff658db71c1fedbae7e621827491c521fad4bc647e5b2b6e38244eba3611a419a5249695eb2f21768df973fa2b2ec66df0684ff647140b48d272121e17
6
+ metadata.gz: 6d4ac3beb206a62565b0f92a35bc069c0bedab373ca5b90c4145a5b2b8a90d7adfca72896c1efbaa8230187711e52d8fb77213094bd27d38302f026c54fd5f57
7
+ data.tar.gz: 2004881489c23baa77c6580ab83e6eb73047f311f484f6d6c85b2d51e0e1be93826b4a839793c09040868ad72a50a40ed8225f5797070663a62014339cbe92dd
@@ -49,7 +49,14 @@ module KnuckleCluster
49
49
  next if regex.match(task_name)
50
50
  end
51
51
 
52
- # next if task_name.include? 'datadog'
52
+ #Exclude any tasks that have no connectable containers
53
+ containers = task.containers
54
+ if @hide[:container]
55
+ regex = Regexp.new(@hide[:container])
56
+ containers.reject!{|container| regex.match(container.name)}
57
+ end
58
+ next unless containers.any?
59
+
53
60
  Task.new(
54
61
  arn: task.task_arn,
55
62
  container_instance_arn: task.container_instance_arn,
@@ -58,12 +65,7 @@ module KnuckleCluster
58
65
  name: task_name,
59
66
  task_registry: self,
60
67
  ).tap do |new_task|
61
- task.containers.each do |container|
62
- if @hide[:container]
63
- regex = Regexp.new(@hide[:container])
64
- next if regex.match(container.name)
65
- end
66
-
68
+ containers.each do |container|
67
69
  index += 1
68
70
 
69
71
  all_containers << Container.new(
@@ -1,3 +1,3 @@
1
1
  module KnuckleCluster
2
- VERSION = '2.3.1'
2
+ VERSION = '2.3.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knuckle_cluster
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.1
4
+ version: 2.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Envato
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-09-23 00:00:00.000000000 Z
11
+ date: 2018-10-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler