aws_ro 1.2.3 → 1.3.0
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 +7 -0
- data/.gitignore +1 -0
- data/.rubocop.yml +11 -166
- data/.rubocop_todo.yml +193 -0
- data/README.md +1 -1
- data/aws_ro.gemspec +4 -1
- data/lib/aws_ro/ec2/repository.rb +1 -1
- data/lib/aws_ro/elastic_load_balancing/repository.rb +1 -1
- data/lib/aws_ro/elastic_load_balancing_v2/load_balancer.rb +4 -1
- data/lib/aws_ro/elastic_load_balancing_v2/repository.rb +1 -1
- data/lib/aws_ro/version.rb +1 -1
- metadata +73 -50
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: e9ab865e5261c7f9598f2ecf824e3ba8baa851710f0fca6f68b2f15da226e30f
|
|
4
|
+
data.tar.gz: 277c50739ed9e3f327874760be5007053e13a2b1444452d1a42820dbae40388d
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 25dbefe6fa03dd1ac6c509ab2a15e48a908f3bc96762fcd666287458efb0f7fe9c22edd8a3eb7259e7d597f78ac71cc26b5bc889cc0a3b243af08bb00b236054
|
|
7
|
+
data.tar.gz: 519ca583aad89b6ce36589329d81cd546b9af3dcc70f64baf06e5ffebce4d89a818cdcd48516cfaee60546857029989574cbf9f1036a69ec6f1ebeea12a9080f
|
data/.gitignore
CHANGED
data/.rubocop.yml
CHANGED
|
@@ -1,178 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
# `rubocop --auto-gen-config`
|
|
3
|
-
# on 2016-02-04 14:19:06 +0900 using RuboCop version 0.36.0.
|
|
4
|
-
# The point is for the user to remove these configuration records
|
|
5
|
-
# one by one as the offenses are removed from the code base.
|
|
6
|
-
# Note that changes in the inspected code, or installation of new
|
|
7
|
-
# versions of RuboCop, may require this file to be generated again.
|
|
1
|
+
inherit_from: .rubocop_todo.yml
|
|
8
2
|
|
|
9
|
-
|
|
10
|
-
Exclude:
|
|
11
|
-
- 'aws_ro.gemspec'
|
|
12
|
-
|
|
13
|
-
# Offense count: 2
|
|
14
|
-
#Lint/UnderscorePrefixedVariableName:
|
|
15
|
-
# Exclude:
|
|
16
|
-
# - 'lib/aws_ro/ec2/repository.rb'
|
|
17
|
-
|
|
18
|
-
# Offense count: 1
|
|
19
|
-
#Lint/UselessAssignment:
|
|
20
|
-
# Exclude:
|
|
21
|
-
# - 'lib/aws_ro/ec2/repository.rb'
|
|
22
|
-
|
|
23
|
-
# Offense count: 12
|
|
24
|
-
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes.
|
|
25
|
-
# URISchemes: http, https
|
|
26
|
-
Metrics/LineLength:
|
|
27
|
-
Max: 120
|
|
28
|
-
# Max: 122
|
|
29
|
-
|
|
30
|
-
# Offense count: 6
|
|
31
|
-
# Cop supports --auto-correct.
|
|
32
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
33
|
-
# SupportedStyles: prefer_alias, prefer_alias_method
|
|
34
|
-
Style/Alias:
|
|
35
|
-
Exclude:
|
|
36
|
-
- 'lib/aws_ro/ec2/instance.rb'
|
|
37
|
-
- 'lib/aws_ro/ec2/repository.rb'
|
|
38
|
-
|
|
39
|
-
# Offense count: 3
|
|
40
|
-
# Cop supports --auto-correct.
|
|
41
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles, ProceduralMethods, FunctionalMethods, IgnoredMethods.
|
|
42
|
-
# SupportedStyles: line_count_based, semantic, braces_for_chaining
|
|
43
|
-
# ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object
|
|
44
|
-
# FunctionalMethods: let, let!, subject, watch
|
|
45
|
-
# IgnoredMethods: lambda, proc, it
|
|
46
|
-
Style/BlockDelimiters:
|
|
47
|
-
AutoCorrect: false
|
|
48
|
-
Exclude:
|
|
49
|
-
- 'spec/**/*'
|
|
50
|
-
|
|
51
|
-
# Offense count: 2
|
|
52
|
-
# Cop supports --auto-correct.
|
|
53
|
-
#Style/CommentIndentation:
|
|
54
|
-
# Exclude:
|
|
55
|
-
# - 'aws_ro.gemspec'
|
|
56
|
-
|
|
57
|
-
# Offense count: 7
|
|
58
|
-
Style/Documentation:
|
|
3
|
+
Style/StringLiterals:
|
|
59
4
|
Enabled: false
|
|
60
|
-
|
|
61
|
-
# Offense count: 4
|
|
62
|
-
# Cop supports --auto-correct.
|
|
63
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
64
|
-
# SupportedStyles: leading, trailing
|
|
65
|
-
Style/DotPosition:
|
|
66
|
-
EnforcedStyle: trailing
|
|
67
|
-
|
|
68
|
-
# Offense count: 2
|
|
69
|
-
# Cop supports --auto-correct.
|
|
70
|
-
#Style/EmptyLinesAroundAccessModifier:
|
|
71
|
-
# Exclude:
|
|
72
|
-
# - 'lib/aws_ro/ec2/instance.rb'
|
|
73
|
-
# - 'lib/aws_ro/ec2/repository.rb'
|
|
74
5
|
|
|
75
|
-
# Offense count: 1
|
|
76
|
-
# Cop supports --auto-correct.
|
|
77
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
78
|
-
# SupportedStyles: empty_lines, no_empty_lines
|
|
79
|
-
#Style/EmptyLinesAroundClassBody:
|
|
80
|
-
# Exclude:
|
|
81
|
-
# - 'lib/aws_ro/ec2/instance.rb'
|
|
82
|
-
|
|
83
|
-
# Offense count: 1
|
|
84
|
-
# Cop supports --auto-correct.
|
|
85
|
-
# Configuration parameters: AllowForAlignment, ForceEqualSignAlignment.
|
|
86
|
-
Style/ExtraSpacing:
|
|
87
|
-
Exclude:
|
|
88
|
-
- 'spec/**/*'
|
|
89
|
-
|
|
90
|
-
# Offense count: 1
|
|
91
|
-
# Cop supports --auto-correct.
|
|
92
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
|
|
93
|
-
# SupportedStyles: special_inside_parentheses, consistent, align_brackets
|
|
94
|
-
#Style/IndentArray:
|
|
95
|
-
# Enabled: false
|
|
96
|
-
|
|
97
|
-
# Offense count: 1
|
|
98
|
-
# Cop supports --auto-correct.
|
|
99
|
-
Style/MultilineBlockLayout:
|
|
100
|
-
Exclude:
|
|
101
|
-
- 'spec/aws_ro/ec2/key_value_accessible_spec.rb'
|
|
102
|
-
|
|
103
|
-
# Offense count: 1
|
|
104
|
-
# Cop supports --auto-correct.
|
|
105
6
|
Style/MutableConstant:
|
|
106
7
|
Enabled: false
|
|
107
8
|
|
|
108
|
-
|
|
109
|
-
# Cop supports --auto-correct.
|
|
110
|
-
Style/Not:
|
|
111
|
-
Exclude:
|
|
112
|
-
- 'lib/aws_ro/ec2/key_value_accessible.rb'
|
|
113
|
-
|
|
114
|
-
# Offense count: 2
|
|
115
|
-
# Cop supports --auto-correct.
|
|
116
|
-
# Configuration parameters: PreferredDelimiters.
|
|
117
|
-
Style/PercentLiteralDelimiters:
|
|
118
|
-
Exclude:
|
|
119
|
-
- 'aws_ro.gemspec'
|
|
120
|
-
|
|
121
|
-
# Offense count: 3
|
|
122
|
-
# Cop supports --auto-correct.
|
|
123
|
-
#Style/SpaceAfterComma:
|
|
124
|
-
# Exclude:
|
|
125
|
-
# - 'lib/aws_ro/ec2/key_value_accessible.rb'
|
|
126
|
-
|
|
127
|
-
# Offense count: 1
|
|
128
|
-
# Cop supports --auto-correct.
|
|
129
|
-
#Style/SpaceBeforeComma:
|
|
130
|
-
# Exclude:
|
|
131
|
-
# - 'spec/aws_ro/ec2/key_value_accessible_spec.rb'
|
|
132
|
-
|
|
133
|
-
# Offense count: 2
|
|
134
|
-
# Cop supports --auto-correct.
|
|
135
|
-
#Style/SpaceInsideBrackets:
|
|
136
|
-
# Exclude:
|
|
137
|
-
# - 'spec/aws_ro/ec2/instance_spec.rb'
|
|
138
|
-
|
|
139
|
-
# Offense count: 3
|
|
140
|
-
# Cop supports --auto-correct.
|
|
141
|
-
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SupportedStyles.
|
|
142
|
-
# SupportedStyles: space, no_space
|
|
143
|
-
# Style/SpaceInsideHashLiteralBraces:
|
|
144
|
-
# Enabled: false
|
|
145
|
-
|
|
146
|
-
# Offense count: 39
|
|
147
|
-
# Cop supports --auto-correct.
|
|
148
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles, ConsistentQuotesInMultiline.
|
|
149
|
-
# SupportedStyles: single_quotes, double_quotes
|
|
150
|
-
Style/StringLiterals:
|
|
9
|
+
Style/Documentation:
|
|
151
10
|
Enabled: false
|
|
152
11
|
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
# Configuration parameters: EnforcedStyleForMultiline, SupportedStyles.
|
|
156
|
-
# SupportedStyles: comma, consistent_comma, no_comma
|
|
157
|
-
Style/TrailingCommaInLiteral:
|
|
158
|
-
EnforcedStyleForMultiline: comma
|
|
12
|
+
Metrics/LineLength:
|
|
13
|
+
Max: 120
|
|
159
14
|
|
|
15
|
+
Style/TrailingCommaInArrayLiteral:
|
|
16
|
+
EnforcedStyleForMultiline: comma
|
|
160
17
|
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
Style/TrailingWhitespace:
|
|
164
|
-
Exclude:
|
|
165
|
-
- 'spec/aws_ro/ec2/instance_spec.rb'
|
|
18
|
+
Style/TrailingCommaInHashLiteral:
|
|
19
|
+
EnforcedStyleForMultiline: comma
|
|
166
20
|
|
|
167
|
-
|
|
168
|
-
# Cop supports --auto-correct.
|
|
169
|
-
Style/UnneededPercentQ:
|
|
21
|
+
Metrics/BlockLength:
|
|
170
22
|
Exclude:
|
|
171
|
-
-
|
|
172
|
-
|
|
173
|
-
# Offense count: 1
|
|
174
|
-
# Cop supports --auto-correct.
|
|
175
|
-
# Configuration parameters: SupportedStyles, MinSize, WordRegex.
|
|
176
|
-
# SupportedStyles: percent, brackets
|
|
177
|
-
Style/WordArray:
|
|
178
|
-
EnforcedStyle: brackets
|
|
23
|
+
- spec/**/*
|
data/.rubocop_todo.yml
ADDED
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
# This configuration was generated by
|
|
2
|
+
# `rubocop --auto-gen-config`
|
|
3
|
+
# on 2019-02-18 11:03:21 +0900 using RuboCop version 0.64.0.
|
|
4
|
+
# The point is for the user to remove these configuration records
|
|
5
|
+
# one by one as the offenses are removed from the code base.
|
|
6
|
+
# Note that changes in the inspected code, or installation of new
|
|
7
|
+
# versions of RuboCop, may require this file to be generated again.
|
|
8
|
+
|
|
9
|
+
# Offense count: 2
|
|
10
|
+
# Cop supports --auto-correct.
|
|
11
|
+
# Configuration parameters: TreatCommentsAsGroupSeparators, Include.
|
|
12
|
+
# Include: **/*.gemspec
|
|
13
|
+
Gemspec/OrderedDependencies:
|
|
14
|
+
Exclude:
|
|
15
|
+
- 'aws_ro.gemspec'
|
|
16
|
+
|
|
17
|
+
# Offense count: 1
|
|
18
|
+
# Configuration parameters: Include.
|
|
19
|
+
# Include: **/*.gemspec
|
|
20
|
+
Gemspec/RequiredRubyVersion:
|
|
21
|
+
Exclude:
|
|
22
|
+
- 'aws_ro.gemspec'
|
|
23
|
+
|
|
24
|
+
# Offense count: 1
|
|
25
|
+
# Cop supports --auto-correct.
|
|
26
|
+
Layout/BlockEndNewline:
|
|
27
|
+
Exclude:
|
|
28
|
+
- 'spec/aws_ro/ec2/key_value_accessible_spec.rb'
|
|
29
|
+
|
|
30
|
+
# Offense count: 4
|
|
31
|
+
# Cop supports --auto-correct.
|
|
32
|
+
# Configuration parameters: EnforcedStyle.
|
|
33
|
+
# SupportedStyles: leading, trailing
|
|
34
|
+
Layout/DotPosition:
|
|
35
|
+
Exclude:
|
|
36
|
+
- 'lib/aws_ro/ec2/key_value_accessible.rb'
|
|
37
|
+
|
|
38
|
+
# Offense count: 4
|
|
39
|
+
# Cop supports --auto-correct.
|
|
40
|
+
Layout/EmptyLineAfterGuardClause:
|
|
41
|
+
Exclude:
|
|
42
|
+
- 'lib/aws_ro/ec2/key_value_accessible.rb'
|
|
43
|
+
- 'lib/aws_ro/elastic_load_balancing/load_balancer.rb'
|
|
44
|
+
- 'lib/aws_ro/elastic_load_balancing_v2/load_balancer.rb'
|
|
45
|
+
|
|
46
|
+
# Offense count: 1
|
|
47
|
+
# Cop supports --auto-correct.
|
|
48
|
+
Layout/EmptyLineAfterMagicComment:
|
|
49
|
+
Exclude:
|
|
50
|
+
- 'aws_ro.gemspec'
|
|
51
|
+
|
|
52
|
+
# Offense count: 1
|
|
53
|
+
# Cop supports --auto-correct.
|
|
54
|
+
# Configuration parameters: AllowForAlignment, ForceEqualSignAlignment.
|
|
55
|
+
Layout/ExtraSpacing:
|
|
56
|
+
Exclude:
|
|
57
|
+
- 'aws_ro.gemspec'
|
|
58
|
+
|
|
59
|
+
# Offense count: 1
|
|
60
|
+
# Cop supports --auto-correct.
|
|
61
|
+
# Configuration parameters: EnforcedStyle.
|
|
62
|
+
# SupportedStyles: auto_detection, squiggly, active_support, powerpack, unindent
|
|
63
|
+
Layout/IndentHeredoc:
|
|
64
|
+
Exclude:
|
|
65
|
+
- 'aws_ro.gemspec'
|
|
66
|
+
|
|
67
|
+
# Offense count: 1
|
|
68
|
+
# Cop supports --auto-correct.
|
|
69
|
+
Layout/MultilineBlockLayout:
|
|
70
|
+
Exclude:
|
|
71
|
+
- 'spec/aws_ro/ec2/key_value_accessible_spec.rb'
|
|
72
|
+
|
|
73
|
+
# Offense count: 1
|
|
74
|
+
# Cop supports --auto-correct.
|
|
75
|
+
# Configuration parameters: AllowForAlignment.
|
|
76
|
+
Layout/SpaceAroundOperators:
|
|
77
|
+
Exclude:
|
|
78
|
+
- 'aws_ro.gemspec'
|
|
79
|
+
|
|
80
|
+
# Offense count: 1
|
|
81
|
+
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
|
|
82
|
+
# URISchemes: http, https
|
|
83
|
+
Metrics/LineLength:
|
|
84
|
+
Max: 146
|
|
85
|
+
|
|
86
|
+
# Offense count: 1
|
|
87
|
+
# Configuration parameters: Blacklist.
|
|
88
|
+
# Blacklist: (?-mix:(^|\s)(EO[A-Z]{1}|END)(\s|$))
|
|
89
|
+
Naming/HeredocDelimiterNaming:
|
|
90
|
+
Exclude:
|
|
91
|
+
- 'aws_ro.gemspec'
|
|
92
|
+
|
|
93
|
+
# Offense count: 1
|
|
94
|
+
# Configuration parameters: EnforcedStyleForLeadingUnderscores.
|
|
95
|
+
# SupportedStylesForLeadingUnderscores: disallowed, required, optional
|
|
96
|
+
Naming/MemoizedInstanceVariableName:
|
|
97
|
+
Exclude:
|
|
98
|
+
- 'lib/aws_ro/ec2/key_value_accessible.rb'
|
|
99
|
+
|
|
100
|
+
# Offense count: 7
|
|
101
|
+
# Cop supports --auto-correct.
|
|
102
|
+
# Configuration parameters: EnforcedStyle.
|
|
103
|
+
# SupportedStyles: prefer_alias, prefer_alias_method
|
|
104
|
+
Style/Alias:
|
|
105
|
+
Exclude:
|
|
106
|
+
- 'lib/aws_ro/ec2/instance.rb'
|
|
107
|
+
- 'lib/aws_ro/ec2/repository.rb'
|
|
108
|
+
|
|
109
|
+
# Offense count: 3
|
|
110
|
+
# Cop supports --auto-correct.
|
|
111
|
+
# Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, IgnoredMethods.
|
|
112
|
+
# SupportedStyles: line_count_based, semantic, braces_for_chaining
|
|
113
|
+
# ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object
|
|
114
|
+
# FunctionalMethods: let, let!, subject, watch
|
|
115
|
+
# IgnoredMethods: lambda, proc, it
|
|
116
|
+
Style/BlockDelimiters:
|
|
117
|
+
Exclude:
|
|
118
|
+
- 'spec/aws_ro/ec2/key_value_accessible_spec.rb'
|
|
119
|
+
|
|
120
|
+
# Offense count: 1
|
|
121
|
+
# Cop supports --auto-correct.
|
|
122
|
+
Style/Encoding:
|
|
123
|
+
Exclude:
|
|
124
|
+
- 'aws_ro.gemspec'
|
|
125
|
+
|
|
126
|
+
# Offense count: 2
|
|
127
|
+
# Cop supports --auto-correct.
|
|
128
|
+
Style/ExpandPathArguments:
|
|
129
|
+
Exclude:
|
|
130
|
+
- 'aws_ro.gemspec'
|
|
131
|
+
- 'spec/spec_helper.rb'
|
|
132
|
+
|
|
133
|
+
# Offense count: 1
|
|
134
|
+
# Configuration parameters: MinBodyLength.
|
|
135
|
+
Style/GuardClause:
|
|
136
|
+
Exclude:
|
|
137
|
+
- 'lib/aws_ro/ec2/instance.rb'
|
|
138
|
+
|
|
139
|
+
# Offense count: 2
|
|
140
|
+
# Cop supports --auto-correct.
|
|
141
|
+
Style/IfUnlessModifier:
|
|
142
|
+
Exclude:
|
|
143
|
+
- 'lib/aws_ro/ec2/key_value_accessible.rb'
|
|
144
|
+
- 'lib/aws_ro/elastic_load_balancing/load_balancer.rb'
|
|
145
|
+
|
|
146
|
+
# Offense count: 1
|
|
147
|
+
# Cop supports --auto-correct.
|
|
148
|
+
Style/Not:
|
|
149
|
+
Exclude:
|
|
150
|
+
- 'lib/aws_ro/ec2/key_value_accessible.rb'
|
|
151
|
+
|
|
152
|
+
# Offense count: 1
|
|
153
|
+
# Cop supports --auto-correct.
|
|
154
|
+
# Configuration parameters: PreferredDelimiters.
|
|
155
|
+
Style/PercentLiteralDelimiters:
|
|
156
|
+
Exclude:
|
|
157
|
+
- 'aws_ro.gemspec'
|
|
158
|
+
|
|
159
|
+
# Offense count: 2
|
|
160
|
+
# Cop supports --auto-correct.
|
|
161
|
+
# Configuration parameters: EnforcedStyle.
|
|
162
|
+
# SupportedStyles: only_raise, only_fail, semantic
|
|
163
|
+
Style/SignalException:
|
|
164
|
+
Exclude:
|
|
165
|
+
- 'lib/aws_ro/elastic_load_balancing/load_balancer.rb'
|
|
166
|
+
|
|
167
|
+
# Offense count: 7
|
|
168
|
+
# Cop supports --auto-correct.
|
|
169
|
+
# Configuration parameters: MinSize.
|
|
170
|
+
# SupportedStyles: percent, brackets
|
|
171
|
+
Style/SymbolArray:
|
|
172
|
+
EnforcedStyle: brackets
|
|
173
|
+
|
|
174
|
+
# Offense count: 1
|
|
175
|
+
# Cop supports --auto-correct.
|
|
176
|
+
# Configuration parameters: EnforcedStyleForMultiline.
|
|
177
|
+
# SupportedStylesForMultiline: comma, consistent_comma, no_comma
|
|
178
|
+
Style/TrailingCommaInHashLiteral:
|
|
179
|
+
Exclude:
|
|
180
|
+
- 'spec/aws_ro/ec2/instance_spec.rb'
|
|
181
|
+
|
|
182
|
+
# Offense count: 1
|
|
183
|
+
# Cop supports --auto-correct.
|
|
184
|
+
Style/UnneededPercentQ:
|
|
185
|
+
Exclude:
|
|
186
|
+
- 'aws_ro.gemspec'
|
|
187
|
+
|
|
188
|
+
# Offense count: 1
|
|
189
|
+
# Cop supports --auto-correct.
|
|
190
|
+
# Configuration parameters: MinSize, WordRegex.
|
|
191
|
+
# SupportedStyles: percent, brackets
|
|
192
|
+
Style/WordArray:
|
|
193
|
+
EnforcedStyle: brackets
|
data/README.md
CHANGED
|
@@ -70,7 +70,7 @@ end
|
|
|
70
70
|
puts "Print ALB rules and targets"
|
|
71
71
|
options = { region: 'ap-northeast-1' }
|
|
72
72
|
albs = AwsRo::ElasticLoadBalancingV2::Repository.new(options).all
|
|
73
|
-
albs.each do |lb|
|
|
73
|
+
albs.all.each do |lb|
|
|
74
74
|
puts "LoadBalancer: #{lb.name}"
|
|
75
75
|
lb.listeners.each do |listener|
|
|
76
76
|
puts "- #{listener.protocol} (#{listener.port})"
|
data/aws_ro.gemspec
CHANGED
|
@@ -31,11 +31,14 @@ Wrpper library of AWS SDK objects to enable to access properties
|
|
|
31
31
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
32
32
|
spec.require_paths = ["lib"]
|
|
33
33
|
|
|
34
|
-
spec.add_dependency "aws-sdk", "
|
|
34
|
+
spec.add_dependency "aws-sdk-ec2", "~> 1"
|
|
35
|
+
spec.add_dependency "aws-sdk-elasticloadbalancing", "~> 1"
|
|
36
|
+
spec.add_dependency "aws-sdk-elasticloadbalancingv2", "~> 1"
|
|
35
37
|
spec.add_development_dependency "bundler", "~> 1.9"
|
|
36
38
|
spec.add_development_dependency "rake", "~> 10.0"
|
|
37
39
|
spec.add_development_dependency "rspec", "~> 3.0"
|
|
38
40
|
spec.add_development_dependency "yard"
|
|
41
|
+
spec.add_development_dependency "rubocop"
|
|
39
42
|
spec.add_development_dependency "guard-rspec"
|
|
40
43
|
spec.add_development_dependency "pry"
|
|
41
44
|
end
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
require 'aws-sdk-elasticloadbalancingv2'
|
|
2
|
+
|
|
1
3
|
module AwsRo
|
|
2
4
|
module ElasticLoadBalancingV2
|
|
3
5
|
class LoadBalancer
|
|
@@ -98,7 +100,8 @@ module AwsRo
|
|
|
98
100
|
private
|
|
99
101
|
|
|
100
102
|
def health_descriptions
|
|
101
|
-
@health_descriptions ||= client.describe_target_health(target_group_arn: arn)
|
|
103
|
+
@health_descriptions ||= client.describe_target_health(target_group_arn: arn)
|
|
104
|
+
.target_health_descriptions.each_with_object({}) do |desc, h|
|
|
102
105
|
h[desc.target.id] = desc
|
|
103
106
|
end
|
|
104
107
|
end
|
data/lib/aws_ro/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,139 +1,168 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: aws_ro
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
5
|
-
prerelease:
|
|
4
|
+
version: 1.3.0
|
|
6
5
|
platform: ruby
|
|
7
6
|
authors:
|
|
8
7
|
- takuto.komazaki
|
|
9
8
|
autorequire:
|
|
10
9
|
bindir: exe
|
|
11
10
|
cert_chain: []
|
|
12
|
-
date:
|
|
11
|
+
date: 2019-02-18 00:00:00.000000000 Z
|
|
13
12
|
dependencies:
|
|
14
13
|
- !ruby/object:Gem::Dependency
|
|
15
|
-
name: aws-sdk
|
|
14
|
+
name: aws-sdk-ec2
|
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
|
17
|
-
none: false
|
|
18
16
|
requirements:
|
|
19
|
-
- -
|
|
17
|
+
- - "~>"
|
|
20
18
|
- !ruby/object:Gem::Version
|
|
21
|
-
version:
|
|
19
|
+
version: '1'
|
|
22
20
|
type: :runtime
|
|
23
21
|
prerelease: false
|
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
25
|
-
none: false
|
|
26
23
|
requirements:
|
|
27
|
-
- -
|
|
24
|
+
- - "~>"
|
|
28
25
|
- !ruby/object:Gem::Version
|
|
29
|
-
version:
|
|
26
|
+
version: '1'
|
|
27
|
+
- !ruby/object:Gem::Dependency
|
|
28
|
+
name: aws-sdk-elasticloadbalancing
|
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
|
30
|
+
requirements:
|
|
31
|
+
- - "~>"
|
|
32
|
+
- !ruby/object:Gem::Version
|
|
33
|
+
version: '1'
|
|
34
|
+
type: :runtime
|
|
35
|
+
prerelease: false
|
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
37
|
+
requirements:
|
|
38
|
+
- - "~>"
|
|
39
|
+
- !ruby/object:Gem::Version
|
|
40
|
+
version: '1'
|
|
41
|
+
- !ruby/object:Gem::Dependency
|
|
42
|
+
name: aws-sdk-elasticloadbalancingv2
|
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
|
44
|
+
requirements:
|
|
45
|
+
- - "~>"
|
|
46
|
+
- !ruby/object:Gem::Version
|
|
47
|
+
version: '1'
|
|
48
|
+
type: :runtime
|
|
49
|
+
prerelease: false
|
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
51
|
+
requirements:
|
|
52
|
+
- - "~>"
|
|
53
|
+
- !ruby/object:Gem::Version
|
|
54
|
+
version: '1'
|
|
30
55
|
- !ruby/object:Gem::Dependency
|
|
31
56
|
name: bundler
|
|
32
57
|
requirement: !ruby/object:Gem::Requirement
|
|
33
|
-
none: false
|
|
34
58
|
requirements:
|
|
35
|
-
- - ~>
|
|
59
|
+
- - "~>"
|
|
36
60
|
- !ruby/object:Gem::Version
|
|
37
61
|
version: '1.9'
|
|
38
62
|
type: :development
|
|
39
63
|
prerelease: false
|
|
40
64
|
version_requirements: !ruby/object:Gem::Requirement
|
|
41
|
-
none: false
|
|
42
65
|
requirements:
|
|
43
|
-
- - ~>
|
|
66
|
+
- - "~>"
|
|
44
67
|
- !ruby/object:Gem::Version
|
|
45
68
|
version: '1.9'
|
|
46
69
|
- !ruby/object:Gem::Dependency
|
|
47
70
|
name: rake
|
|
48
71
|
requirement: !ruby/object:Gem::Requirement
|
|
49
|
-
none: false
|
|
50
72
|
requirements:
|
|
51
|
-
- - ~>
|
|
73
|
+
- - "~>"
|
|
52
74
|
- !ruby/object:Gem::Version
|
|
53
75
|
version: '10.0'
|
|
54
76
|
type: :development
|
|
55
77
|
prerelease: false
|
|
56
78
|
version_requirements: !ruby/object:Gem::Requirement
|
|
57
|
-
none: false
|
|
58
79
|
requirements:
|
|
59
|
-
- - ~>
|
|
80
|
+
- - "~>"
|
|
60
81
|
- !ruby/object:Gem::Version
|
|
61
82
|
version: '10.0'
|
|
62
83
|
- !ruby/object:Gem::Dependency
|
|
63
84
|
name: rspec
|
|
64
85
|
requirement: !ruby/object:Gem::Requirement
|
|
65
|
-
none: false
|
|
66
86
|
requirements:
|
|
67
|
-
- - ~>
|
|
87
|
+
- - "~>"
|
|
68
88
|
- !ruby/object:Gem::Version
|
|
69
89
|
version: '3.0'
|
|
70
90
|
type: :development
|
|
71
91
|
prerelease: false
|
|
72
92
|
version_requirements: !ruby/object:Gem::Requirement
|
|
73
|
-
none: false
|
|
74
93
|
requirements:
|
|
75
|
-
- - ~>
|
|
94
|
+
- - "~>"
|
|
76
95
|
- !ruby/object:Gem::Version
|
|
77
96
|
version: '3.0'
|
|
78
97
|
- !ruby/object:Gem::Dependency
|
|
79
98
|
name: yard
|
|
80
99
|
requirement: !ruby/object:Gem::Requirement
|
|
81
|
-
none: false
|
|
82
100
|
requirements:
|
|
83
|
-
- -
|
|
101
|
+
- - ">="
|
|
102
|
+
- !ruby/object:Gem::Version
|
|
103
|
+
version: '0'
|
|
104
|
+
type: :development
|
|
105
|
+
prerelease: false
|
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
107
|
+
requirements:
|
|
108
|
+
- - ">="
|
|
109
|
+
- !ruby/object:Gem::Version
|
|
110
|
+
version: '0'
|
|
111
|
+
- !ruby/object:Gem::Dependency
|
|
112
|
+
name: rubocop
|
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
|
114
|
+
requirements:
|
|
115
|
+
- - ">="
|
|
84
116
|
- !ruby/object:Gem::Version
|
|
85
117
|
version: '0'
|
|
86
118
|
type: :development
|
|
87
119
|
prerelease: false
|
|
88
120
|
version_requirements: !ruby/object:Gem::Requirement
|
|
89
|
-
none: false
|
|
90
121
|
requirements:
|
|
91
|
-
- -
|
|
122
|
+
- - ">="
|
|
92
123
|
- !ruby/object:Gem::Version
|
|
93
124
|
version: '0'
|
|
94
125
|
- !ruby/object:Gem::Dependency
|
|
95
126
|
name: guard-rspec
|
|
96
127
|
requirement: !ruby/object:Gem::Requirement
|
|
97
|
-
none: false
|
|
98
128
|
requirements:
|
|
99
|
-
- -
|
|
129
|
+
- - ">="
|
|
100
130
|
- !ruby/object:Gem::Version
|
|
101
131
|
version: '0'
|
|
102
132
|
type: :development
|
|
103
133
|
prerelease: false
|
|
104
134
|
version_requirements: !ruby/object:Gem::Requirement
|
|
105
|
-
none: false
|
|
106
135
|
requirements:
|
|
107
|
-
- -
|
|
136
|
+
- - ">="
|
|
108
137
|
- !ruby/object:Gem::Version
|
|
109
138
|
version: '0'
|
|
110
139
|
- !ruby/object:Gem::Dependency
|
|
111
140
|
name: pry
|
|
112
141
|
requirement: !ruby/object:Gem::Requirement
|
|
113
|
-
none: false
|
|
114
142
|
requirements:
|
|
115
|
-
- -
|
|
143
|
+
- - ">="
|
|
116
144
|
- !ruby/object:Gem::Version
|
|
117
145
|
version: '0'
|
|
118
146
|
type: :development
|
|
119
147
|
prerelease: false
|
|
120
148
|
version_requirements: !ruby/object:Gem::Requirement
|
|
121
|
-
none: false
|
|
122
149
|
requirements:
|
|
123
|
-
- -
|
|
150
|
+
- - ">="
|
|
124
151
|
- !ruby/object:Gem::Version
|
|
125
152
|
version: '0'
|
|
126
|
-
description:
|
|
127
|
-
|
|
153
|
+
description: |
|
|
154
|
+
Wrpper library of AWS SDK objects to enable to access properties
|
|
155
|
+
more easily, more ruby-likely.
|
|
128
156
|
email:
|
|
129
157
|
- takuto.komazaki@gree.net
|
|
130
158
|
executables: []
|
|
131
159
|
extensions: []
|
|
132
160
|
extra_rdoc_files: []
|
|
133
161
|
files:
|
|
134
|
-
- .gitignore
|
|
135
|
-
- .rspec
|
|
136
|
-
- .rubocop.yml
|
|
162
|
+
- ".gitignore"
|
|
163
|
+
- ".rspec"
|
|
164
|
+
- ".rubocop.yml"
|
|
165
|
+
- ".rubocop_todo.yml"
|
|
137
166
|
- Gemfile
|
|
138
167
|
- Guardfile
|
|
139
168
|
- LICENSE.txt
|
|
@@ -156,30 +185,24 @@ files:
|
|
|
156
185
|
- lib/aws_ro/version.rb
|
|
157
186
|
homepage: https://github.com/gree/aws_ro
|
|
158
187
|
licenses: []
|
|
188
|
+
metadata: {}
|
|
159
189
|
post_install_message:
|
|
160
190
|
rdoc_options: []
|
|
161
191
|
require_paths:
|
|
162
192
|
- lib
|
|
163
193
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
164
|
-
none: false
|
|
165
194
|
requirements:
|
|
166
|
-
- -
|
|
195
|
+
- - ">="
|
|
167
196
|
- !ruby/object:Gem::Version
|
|
168
197
|
version: 1.9.3
|
|
169
198
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
170
|
-
none: false
|
|
171
199
|
requirements:
|
|
172
|
-
- -
|
|
200
|
+
- - ">="
|
|
173
201
|
- !ruby/object:Gem::Version
|
|
174
202
|
version: '0'
|
|
175
|
-
segments:
|
|
176
|
-
- 0
|
|
177
|
-
hash: 3173493615337819720
|
|
178
203
|
requirements: []
|
|
179
|
-
|
|
180
|
-
rubygems_version: 1.8.23.2
|
|
204
|
+
rubygems_version: 3.0.1
|
|
181
205
|
signing_key:
|
|
182
|
-
specification_version:
|
|
206
|
+
specification_version: 4
|
|
183
207
|
summary: Wrpper library of AWS SDK objects.
|
|
184
208
|
test_files: []
|
|
185
|
-
has_rdoc:
|