hako 1.8.2 → 1.8.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +3 -13
- data/.rubocop_todo.yml +0 -12
- data/CHANGELOG.md +4 -0
- data/hako.gemspec +1 -1
- data/lib/hako/container.rb +12 -0
- data/lib/hako/schedulers/ecs.rb +1 -0
- data/lib/hako/schedulers/ecs_definition_comparator.rb +14 -2
- data/lib/hako/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c7c0c22449d4bbfeb7fd6f6e54e0696b3545047a
|
4
|
+
data.tar.gz: 2dbc3ea5ff6a88ff2fa993e17e355dabce67d804
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a01ec75ccaa500548a170b57d888d10655efc317f88b660e7fec545f4afd7cef6475e34d3643f478c42f6f98333b9b5b1e2322c979bf48f74de7695168bf7fa3
|
7
|
+
data.tar.gz: 98a23ca8ade1ce65ae0c81ef9bbc7daa2d01968c2c9ab9c4bb814b756086ab0379f7de2fa47e8dbfe33991a679f001cb37690ede379b2b1d1c2ccdaf0b5f2104
|
data/.rubocop.yml
CHANGED
@@ -7,44 +7,34 @@ AllCops:
|
|
7
7
|
Layout/FirstParameterIndentation:
|
8
8
|
Enabled: false
|
9
9
|
|
10
|
+
Naming/PredicateName:
|
11
|
+
Enabled: false
|
12
|
+
|
10
13
|
Style/Alias:
|
11
14
|
EnforcedStyle: prefer_alias_method
|
12
|
-
|
13
15
|
Style/GuardClause:
|
14
16
|
Enabled: false
|
15
|
-
|
16
17
|
Style/HashSyntax:
|
17
18
|
Exclude:
|
18
19
|
- 'Rakefile'
|
19
|
-
|
20
20
|
Style/IfUnlessModifier:
|
21
21
|
Enabled: false
|
22
|
-
|
23
22
|
Style/Next:
|
24
23
|
Enabled: false
|
25
|
-
|
26
24
|
Style/NumericLiterals:
|
27
25
|
Enabled: false
|
28
|
-
|
29
26
|
Style/PercentLiteralDelimiters:
|
30
27
|
PreferredDelimiters:
|
31
28
|
'%w': '[]'
|
32
29
|
'%i': '[]'
|
33
|
-
|
34
30
|
Style/RaiseArgs:
|
35
31
|
EnforcedStyle: compact
|
36
|
-
|
37
32
|
Style/SignalException:
|
38
33
|
Enabled: false
|
39
|
-
|
40
34
|
Style/TrailingCommaInArguments:
|
41
35
|
Enabled: false
|
42
|
-
|
43
36
|
Style/TrailingCommaInLiteral:
|
44
37
|
Enabled: false
|
45
38
|
|
46
|
-
Style/PredicateName:
|
47
|
-
Enabled: false
|
48
|
-
|
49
39
|
Performance/RedundantBlockCall:
|
50
40
|
Enabled: false
|
data/.rubocop_todo.yml
CHANGED
@@ -1,36 +1,24 @@
|
|
1
1
|
Metrics/AbcSize:
|
2
2
|
Enabled: false
|
3
|
-
|
4
3
|
Metrics/BlockLength:
|
5
4
|
Enabled: false
|
6
|
-
|
7
5
|
Metrics/ClassLength:
|
8
6
|
Enabled: false
|
9
|
-
|
10
7
|
Metrics/CyclomaticComplexity:
|
11
8
|
Enabled: false
|
12
|
-
|
13
9
|
Metrics/LineLength:
|
14
10
|
Enabled: false
|
15
|
-
|
16
11
|
Metrics/MethodLength:
|
17
12
|
Enabled: false
|
18
|
-
|
19
13
|
Metrics/ParameterLists:
|
20
14
|
Enabled: false
|
21
|
-
|
22
15
|
Metrics/PerceivedComplexity:
|
23
16
|
Enabled: false
|
24
|
-
|
25
17
|
Metrics/BlockNesting:
|
26
18
|
Enabled: false
|
27
19
|
|
28
20
|
Style/Documentation:
|
29
21
|
Enabled: false
|
30
|
-
|
31
22
|
Style/SafeNavigation:
|
32
23
|
# extremely buggy in v0.43.0
|
33
24
|
Enabled: false
|
34
|
-
Style/VariableNumber:
|
35
|
-
# extremely buggy in v0.43.0
|
36
|
-
Enabled: false
|
data/CHANGELOG.md
CHANGED
data/hako.gemspec
CHANGED
@@ -36,7 +36,7 @@ Gem::Specification.new do |spec|
|
|
36
36
|
spec.add_development_dependency 'coveralls'
|
37
37
|
spec.add_development_dependency 'rake'
|
38
38
|
spec.add_development_dependency 'rspec'
|
39
|
-
spec.add_development_dependency 'rubocop', '>= 0.
|
39
|
+
spec.add_development_dependency 'rubocop', '>= 0.50.0'
|
40
40
|
spec.add_development_dependency 'simplecov'
|
41
41
|
spec.add_development_dependency 'yard'
|
42
42
|
end
|
data/lib/hako/container.rb
CHANGED
@@ -100,6 +100,18 @@ module Hako
|
|
100
100
|
end
|
101
101
|
end
|
102
102
|
|
103
|
+
# @return [Array<Hash>, nil]
|
104
|
+
def extra_hosts
|
105
|
+
if @definition.key?('extra_hosts')
|
106
|
+
@definition['extra_hosts'].map do |extra_host|
|
107
|
+
{
|
108
|
+
hostname: extra_host.fetch('hostname'),
|
109
|
+
ip_address: extra_host.fetch('ip_address'),
|
110
|
+
}
|
111
|
+
end
|
112
|
+
end
|
113
|
+
end
|
114
|
+
|
103
115
|
private
|
104
116
|
|
105
117
|
PROVIDERS_KEY = '$providers'
|
data/lib/hako/schedulers/ecs.rb
CHANGED
@@ -35,7 +35,8 @@ module Hako
|
|
35
35
|
struct.member(:user, Schema::Nullable.new(Schema::String.new))
|
36
36
|
struct.member(:privileged, Schema::Boolean.new)
|
37
37
|
struct.member(:log_configuration, Schema::Nullable.new(log_configuration_schema))
|
38
|
-
struct.member(:ulimits, Schema::Nullable.new(
|
38
|
+
struct.member(:ulimits, Schema::Nullable.new(ulimits_schema))
|
39
|
+
struct.member(:extra_hosts, Schema::Nullable.new(extra_hosts_schema))
|
39
40
|
end
|
40
41
|
end
|
41
42
|
|
@@ -76,7 +77,7 @@ module Hako
|
|
76
77
|
end
|
77
78
|
end
|
78
79
|
|
79
|
-
def
|
80
|
+
def ulimits_schema
|
80
81
|
Schema::UnorderedArray.new(ulimit_schema)
|
81
82
|
end
|
82
83
|
|
@@ -87,6 +88,17 @@ module Hako
|
|
87
88
|
struct.member(:soft_limit, Schema::Integer.new)
|
88
89
|
end
|
89
90
|
end
|
91
|
+
|
92
|
+
def extra_hosts_schema
|
93
|
+
Schema::UnorderedArray.new(extra_host_schema)
|
94
|
+
end
|
95
|
+
|
96
|
+
def extra_host_schema
|
97
|
+
Schema::Structure.new.tap do |struct|
|
98
|
+
struct.member(:hostname, Schema::String.new)
|
99
|
+
struct.member(:ip_address, Schema::String.new)
|
100
|
+
end
|
101
|
+
end
|
90
102
|
end
|
91
103
|
end
|
92
104
|
end
|
data/lib/hako/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hako
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.8.
|
4
|
+
version: 1.8.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kohei Suzuki
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-09-
|
11
|
+
date: 2017-09-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-applicationautoscaling
|
@@ -212,14 +212,14 @@ dependencies:
|
|
212
212
|
requirements:
|
213
213
|
- - ">="
|
214
214
|
- !ruby/object:Gem::Version
|
215
|
-
version: 0.
|
215
|
+
version: 0.50.0
|
216
216
|
type: :development
|
217
217
|
prerelease: false
|
218
218
|
version_requirements: !ruby/object:Gem::Requirement
|
219
219
|
requirements:
|
220
220
|
- - ">="
|
221
221
|
- !ruby/object:Gem::Version
|
222
|
-
version: 0.
|
222
|
+
version: 0.50.0
|
223
223
|
- !ruby/object:Gem::Dependency
|
224
224
|
name: simplecov
|
225
225
|
requirement: !ruby/object:Gem::Requirement
|