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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5f1cc622b196be1f0ce61dd7efa6fec85a3370ff
4
- data.tar.gz: 55437297ffdc3357d1f190b092f60951090e7720
3
+ metadata.gz: c7c0c22449d4bbfeb7fd6f6e54e0696b3545047a
4
+ data.tar.gz: 2dbc3ea5ff6a88ff2fa993e17e355dabce67d804
5
5
  SHA512:
6
- metadata.gz: c1651fc600b1928e88209e297c256754ddc43993de868cd3a30414cc58983365b9518e21adde797940cde5404991300aeed6104cbcd49c849ae925b876091ba1
7
- data.tar.gz: 8ef388bfd84c183154b98e417ad582029411a1c0d936c42185e849ab40b0ffb93edc6f5b0f6d462efc07e0c3f2928627aafa10efc67e4f25f5f8c916cac6e0e0
6
+ metadata.gz: a01ec75ccaa500548a170b57d888d10655efc317f88b660e7fec545f4afd7cef6475e34d3643f478c42f6f98333b9b5b1e2322c979bf48f74de7695168bf7fa3
7
+ data.tar.gz: 98a23ca8ade1ce65ae0c81ef9bbc7daa2d01968c2c9ab9c4bb814b756086ab0379f7de2fa47e8dbfe33991a679f001cb37690ede379b2b1d1c2ccdaf0b5f2104
@@ -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
@@ -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
@@ -1,3 +1,7 @@
1
+ # 1.8.3 (2017-09-25)
2
+ ## Improvements
3
+ - Support `extra_hosts` option
4
+
1
5
  # 1.8.2 (2017-09-15)
2
6
  ## Bug fixes
3
7
  - Retry DeleteTargetGroup in `hako remove`
@@ -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.36.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
@@ -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'
@@ -517,6 +517,7 @@ module Hako
517
517
  user: container.user,
518
518
  log_configuration: container.log_configuration,
519
519
  ulimits: container.ulimits,
520
+ extra_hosts: container.extra_hosts,
520
521
  }
521
522
  end
522
523
 
@@ -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(ulimits_chema))
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 ulimits_chema
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Hako
4
- VERSION = '1.8.2'
4
+ VERSION = '1.8.3'
5
5
  end
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.2
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-20 00:00:00.000000000 Z
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.36.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.36.0
222
+ version: 0.50.0
223
223
  - !ruby/object:Gem::Dependency
224
224
  name: simplecov
225
225
  requirement: !ruby/object:Gem::Requirement