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 +4 -4
- data/lib/knuckle_cluster/task_registry.rb +9 -7
- data/lib/knuckle_cluster/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2343d5fb38d64891674b60a8ffd6b2c69a148442
|
|
4
|
+
data.tar.gz: d3a0c2f602a05b84c28322e8eb9f871cd298283c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
#
|
|
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
|
-
|
|
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(
|
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.
|
|
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-
|
|
11
|
+
date: 2018-10-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|