ruby_aem_aws 3.0.0 → 4.0.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 +5 -5
- data/conf/gem.yaml +2 -1
- data/lib/ruby_aem_aws/component/author.rb +2 -2
- data/lib/ruby_aem_aws/mixins/healthy_count_verifier.rb +2 -2
- data/lib/ruby_aem_aws/mixins/healthy_resource_verifier.rb +3 -3
- data/lib/ruby_aem_aws/mixins/metric_verifier.rb +10 -10
- data/lib/ruby_aem_aws/mixins/snapshot_verifier.rb +1 -1
- data/lib/ruby_aem_aws.rb +2 -2
- metadata +26 -30
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: d0e47d8a013789c8d294f15928cd1327630d762a0d6ad72cab9b4194a9a51cfb
|
|
4
|
+
data.tar.gz: 3b9afaa4301269538ced9bb5870af8081f57f39e75ad87e8ed49327e73eef3a6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5b95914a8dfd5f7abe22ef6a41f47e64ec0d610e195102f4bd3ba0e86fd54a241ee677708da1fb99ff14a3c684599267eb4522e0b4d112491425d3e2cce8a7c7
|
|
7
|
+
data.tar.gz: ad5a9349ede4d6454afe74bf8be372480d8762652523507cce330406990c19740e3cb47e80fdb78a9069a71de2d1462f1604e58950cf1cee78c5f8e8a5575197
|
data/conf/gem.yaml
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
version: 4.0.0
|
|
@@ -49,7 +49,7 @@ module RubyAemAws
|
|
|
49
49
|
instance = 0
|
|
50
50
|
instance += 1 if author_primary.healthy?
|
|
51
51
|
instance += 1 if author_standby.healthy?
|
|
52
|
-
|
|
52
|
+
true unless instance < 2
|
|
53
53
|
end
|
|
54
54
|
|
|
55
55
|
# @return true, if all author instances are healthy
|
|
@@ -57,7 +57,7 @@ module RubyAemAws
|
|
|
57
57
|
instance = 0
|
|
58
58
|
instance += 1 if author_primary.wait_until_healthy.eql? true
|
|
59
59
|
instance += 1 if author_standby.wait_until_healthy.eql? true
|
|
60
|
-
|
|
60
|
+
true unless instance < 2
|
|
61
61
|
end
|
|
62
62
|
|
|
63
63
|
def get_tags
|
|
@@ -69,7 +69,7 @@ module RubyAemAws
|
|
|
69
69
|
raise ELBMisconfiguration if health_state.eql?(:misconfigured)
|
|
70
70
|
|
|
71
71
|
sleep 60 while health_state.eql?(:recovering) || health_state.eql?(:scaling)
|
|
72
|
-
|
|
72
|
+
true if health_state.eql?(:ready)
|
|
73
73
|
end
|
|
74
74
|
|
|
75
75
|
private
|
|
@@ -86,7 +86,7 @@ module RubyAemAws
|
|
|
86
86
|
find_auto_scaling_group = find_auto_scaling_group_name(autoscaling_groups)
|
|
87
87
|
return find_auto_scaling_group unless find_auto_scaling_group.nil?
|
|
88
88
|
end
|
|
89
|
-
|
|
89
|
+
nil if find_auto_scaling_group.nil?
|
|
90
90
|
end
|
|
91
91
|
|
|
92
92
|
def find_auto_scaling_group_name(autoscaling_groups)
|
|
@@ -109,14 +109,14 @@ module RubyAemAws
|
|
|
109
109
|
raise ELBMisconfiguration if health_state_elb.eql?(:misconfigured)
|
|
110
110
|
|
|
111
111
|
sleep 60 while health_state_elb.eql?(:recovering) || health_state_elb.eql?(:scaling)
|
|
112
|
-
|
|
112
|
+
true if health_state_elb.eql?(:ready)
|
|
113
113
|
end
|
|
114
114
|
|
|
115
115
|
def wait_until_healthy_asg
|
|
116
116
|
raise ASGMisconfiguration if health_state_asg.eql?(:misconfigured)
|
|
117
117
|
|
|
118
118
|
sleep 60 while health_state_asg.eql?(:recovering) || health_state_asg.eql?(:scaling)
|
|
119
|
-
|
|
119
|
+
true if health_state_asg.eql?(:ready)
|
|
120
120
|
end
|
|
121
121
|
|
|
122
122
|
private
|
|
@@ -133,7 +133,7 @@ module RubyAemAws
|
|
|
133
133
|
find_auto_scaling_group = find_auto_scaling_group_name(autoscaling_groups)
|
|
134
134
|
return find_auto_scaling_group unless find_auto_scaling_group.nil?
|
|
135
135
|
end
|
|
136
|
-
|
|
136
|
+
nil if find_auto_scaling_group.nil?
|
|
137
137
|
end
|
|
138
138
|
|
|
139
139
|
def find_auto_scaling_group_name(autoscaling_groups)
|
|
@@ -34,7 +34,7 @@ module RubyAemAws
|
|
|
34
34
|
dimensions_name = 'FixedDimension'
|
|
35
35
|
dimensions_value = "#{@descriptor.stack_prefix_in}-#{@descriptor.ec2.component}"
|
|
36
36
|
response = metric?(namespace, metric_name, dimensions_name, dimensions_value)
|
|
37
|
-
|
|
37
|
+
true if response.eql? true
|
|
38
38
|
end
|
|
39
39
|
|
|
40
40
|
# @param metric_name Cloudwatch EC2 metric name
|
|
@@ -59,7 +59,7 @@ module RubyAemAws
|
|
|
59
59
|
|
|
60
60
|
instances_with_metric = instances_with_metric.count
|
|
61
61
|
|
|
62
|
-
|
|
62
|
+
true unless instances_with_metric < instances_found
|
|
63
63
|
end
|
|
64
64
|
|
|
65
65
|
# @param log_stream_name Cloudwatch log stream name
|
|
@@ -84,7 +84,7 @@ module RubyAemAws
|
|
|
84
84
|
end
|
|
85
85
|
instances_with_log_stream = instances_with_log_stream.count
|
|
86
86
|
|
|
87
|
-
|
|
87
|
+
true unless instances_with_log_stream < instances_found
|
|
88
88
|
end
|
|
89
89
|
|
|
90
90
|
# @param log_stream_name Cloudwatch log stream name
|
|
@@ -94,7 +94,7 @@ module RubyAemAws
|
|
|
94
94
|
|
|
95
95
|
response = loggroup?(loggroup_name)
|
|
96
96
|
|
|
97
|
-
|
|
97
|
+
true if response.eql? true
|
|
98
98
|
end
|
|
99
99
|
|
|
100
100
|
# @param log_stream_name Cloudwatch log stream name
|
|
@@ -118,7 +118,7 @@ module RubyAemAws
|
|
|
118
118
|
end
|
|
119
119
|
instances_with_log_stream = instances_with_log_stream.count
|
|
120
120
|
|
|
121
|
-
|
|
121
|
+
true unless instances_with_log_stream < instances_found
|
|
122
122
|
end
|
|
123
123
|
|
|
124
124
|
# @param alarm_name name of the Cloudwatch alarm
|
|
@@ -126,7 +126,7 @@ module RubyAemAws
|
|
|
126
126
|
def alarm?(alarm_name)
|
|
127
127
|
response = get_alarm(alarm_name)
|
|
128
128
|
|
|
129
|
-
|
|
129
|
+
true unless response.metric_alarms.empty?
|
|
130
130
|
end
|
|
131
131
|
|
|
132
132
|
# @param namespace Cloudwatch metric namespace
|
|
@@ -139,7 +139,7 @@ module RubyAemAws
|
|
|
139
139
|
dimension_filter = dimensions_filter_for_cloudwatch_metric(dimension_values)
|
|
140
140
|
|
|
141
141
|
response = get_metrics(namespace, metric_name, dimension_filter)
|
|
142
|
-
|
|
142
|
+
true unless response.metrics.empty?
|
|
143
143
|
end
|
|
144
144
|
|
|
145
145
|
# @param loggroup_name Cloudwatch loggroup name
|
|
@@ -151,7 +151,7 @@ module RubyAemAws
|
|
|
151
151
|
|
|
152
152
|
response = get_log_streams(loggroup_name, log_stream_name)
|
|
153
153
|
|
|
154
|
-
|
|
154
|
+
true unless response.log_streams.empty?
|
|
155
155
|
end
|
|
156
156
|
|
|
157
157
|
# @param loggroup_name Cloudwatch loggroup name
|
|
@@ -166,7 +166,7 @@ module RubyAemAws
|
|
|
166
166
|
return false unless response.eql? true
|
|
167
167
|
|
|
168
168
|
response = get_log_event(loggroup_name, log_stream_name, log_message)
|
|
169
|
-
|
|
169
|
+
true unless response.events.empty?
|
|
170
170
|
end
|
|
171
171
|
|
|
172
172
|
# @param loggroup_name Cloudwatch loggroup name
|
|
@@ -182,7 +182,7 @@ module RubyAemAws
|
|
|
182
182
|
|
|
183
183
|
response = get_metrics(namespace, metric_name, dimension_filter)
|
|
184
184
|
|
|
185
|
-
|
|
185
|
+
true unless response.metrics.empty?
|
|
186
186
|
end
|
|
187
187
|
end
|
|
188
188
|
end
|
|
@@ -19,7 +19,7 @@ module RubyAemAws
|
|
|
19
19
|
# @param snapshot_id AWS Snapshot ID
|
|
20
20
|
# @return true if snapshot exists, nil if no snapshot exists
|
|
21
21
|
def snapshot?(snapshot_id)
|
|
22
|
-
|
|
22
|
+
true unless get_snapshot_by_id(snapshot_id).nil?
|
|
23
23
|
end
|
|
24
24
|
|
|
25
25
|
# @param snapshot_type AEM snapshot type
|
data/lib/ruby_aem_aws.rb
CHANGED
|
@@ -57,10 +57,10 @@ module RubyAemAws
|
|
|
57
57
|
# Test connection to Amazon AWS
|
|
58
58
|
#
|
|
59
59
|
# @return One or more regions that are currently available.
|
|
60
|
-
def test_connection
|
|
60
|
+
def test_connection # rubocop:disable Naming/PredicateMethod
|
|
61
61
|
result = []
|
|
62
62
|
ec2_client = @aws[:Ec2Client]
|
|
63
|
-
ec2_client.describe_regions.regions.each do |region|
|
|
63
|
+
ec2_client.describe_regions.regions.each do |region| # rubocop:disable Style/MapIntoArray
|
|
64
64
|
result.push("Region #{region.region_name} (#{region.endpoint})")
|
|
65
65
|
end
|
|
66
66
|
!result.empty?
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ruby_aem_aws
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 4.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Shine Solutions
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: aws-sdk-autoscaling
|
|
@@ -16,126 +15,126 @@ dependencies:
|
|
|
16
15
|
requirements:
|
|
17
16
|
- - '='
|
|
18
17
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: 1.
|
|
18
|
+
version: 1.168.0
|
|
20
19
|
type: :runtime
|
|
21
20
|
prerelease: false
|
|
22
21
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
22
|
requirements:
|
|
24
23
|
- - '='
|
|
25
24
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: 1.
|
|
25
|
+
version: 1.168.0
|
|
27
26
|
- !ruby/object:Gem::Dependency
|
|
28
27
|
name: aws-sdk-cloudformation
|
|
29
28
|
requirement: !ruby/object:Gem::Requirement
|
|
30
29
|
requirements:
|
|
31
30
|
- - '='
|
|
32
31
|
- !ruby/object:Gem::Version
|
|
33
|
-
version: 1.
|
|
32
|
+
version: 1.160.0
|
|
34
33
|
type: :runtime
|
|
35
34
|
prerelease: false
|
|
36
35
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
36
|
requirements:
|
|
38
37
|
- - '='
|
|
39
38
|
- !ruby/object:Gem::Version
|
|
40
|
-
version: 1.
|
|
39
|
+
version: 1.160.0
|
|
41
40
|
- !ruby/object:Gem::Dependency
|
|
42
41
|
name: aws-sdk-cloudwatch
|
|
43
42
|
requirement: !ruby/object:Gem::Requirement
|
|
44
43
|
requirements:
|
|
45
44
|
- - '='
|
|
46
45
|
- !ruby/object:Gem::Version
|
|
47
|
-
version: 1.
|
|
46
|
+
version: 1.149.0
|
|
48
47
|
type: :runtime
|
|
49
48
|
prerelease: false
|
|
50
49
|
version_requirements: !ruby/object:Gem::Requirement
|
|
51
50
|
requirements:
|
|
52
51
|
- - '='
|
|
53
52
|
- !ruby/object:Gem::Version
|
|
54
|
-
version: 1.
|
|
53
|
+
version: 1.149.0
|
|
55
54
|
- !ruby/object:Gem::Dependency
|
|
56
55
|
name: aws-sdk-cloudwatchlogs
|
|
57
56
|
requirement: !ruby/object:Gem::Requirement
|
|
58
57
|
requirements:
|
|
59
58
|
- - '='
|
|
60
59
|
- !ruby/object:Gem::Version
|
|
61
|
-
version: 1.
|
|
60
|
+
version: 1.165.0
|
|
62
61
|
type: :runtime
|
|
63
62
|
prerelease: false
|
|
64
63
|
version_requirements: !ruby/object:Gem::Requirement
|
|
65
64
|
requirements:
|
|
66
65
|
- - '='
|
|
67
66
|
- !ruby/object:Gem::Version
|
|
68
|
-
version: 1.
|
|
67
|
+
version: 1.165.0
|
|
69
68
|
- !ruby/object:Gem::Dependency
|
|
70
69
|
name: aws-sdk-dynamodb
|
|
71
70
|
requirement: !ruby/object:Gem::Requirement
|
|
72
71
|
requirements:
|
|
73
72
|
- - '='
|
|
74
73
|
- !ruby/object:Gem::Version
|
|
75
|
-
version: 1.
|
|
74
|
+
version: 1.175.0
|
|
76
75
|
type: :runtime
|
|
77
76
|
prerelease: false
|
|
78
77
|
version_requirements: !ruby/object:Gem::Requirement
|
|
79
78
|
requirements:
|
|
80
79
|
- - '='
|
|
81
80
|
- !ruby/object:Gem::Version
|
|
82
|
-
version: 1.
|
|
81
|
+
version: 1.175.0
|
|
83
82
|
- !ruby/object:Gem::Dependency
|
|
84
83
|
name: aws-sdk-ec2
|
|
85
84
|
requirement: !ruby/object:Gem::Requirement
|
|
86
85
|
requirements:
|
|
87
86
|
- - '='
|
|
88
87
|
- !ruby/object:Gem::Version
|
|
89
|
-
version: 1.
|
|
88
|
+
version: 1.655.0
|
|
90
89
|
type: :runtime
|
|
91
90
|
prerelease: false
|
|
92
91
|
version_requirements: !ruby/object:Gem::Requirement
|
|
93
92
|
requirements:
|
|
94
93
|
- - '='
|
|
95
94
|
- !ruby/object:Gem::Version
|
|
96
|
-
version: 1.
|
|
95
|
+
version: 1.655.0
|
|
97
96
|
- !ruby/object:Gem::Dependency
|
|
98
97
|
name: aws-sdk-elasticloadbalancingv2
|
|
99
98
|
requirement: !ruby/object:Gem::Requirement
|
|
100
99
|
requirements:
|
|
101
100
|
- - '='
|
|
102
101
|
- !ruby/object:Gem::Version
|
|
103
|
-
version: 1.
|
|
102
|
+
version: 1.159.0
|
|
104
103
|
type: :runtime
|
|
105
104
|
prerelease: false
|
|
106
105
|
version_requirements: !ruby/object:Gem::Requirement
|
|
107
106
|
requirements:
|
|
108
107
|
- - '='
|
|
109
108
|
- !ruby/object:Gem::Version
|
|
110
|
-
version: 1.
|
|
109
|
+
version: 1.159.0
|
|
111
110
|
- !ruby/object:Gem::Dependency
|
|
112
111
|
name: aws-sdk-sns
|
|
113
112
|
requirement: !ruby/object:Gem::Requirement
|
|
114
113
|
requirements:
|
|
115
114
|
- - '='
|
|
116
115
|
- !ruby/object:Gem::Version
|
|
117
|
-
version: 1.
|
|
116
|
+
version: 1.121.0
|
|
118
117
|
type: :runtime
|
|
119
118
|
prerelease: false
|
|
120
119
|
version_requirements: !ruby/object:Gem::Requirement
|
|
121
120
|
requirements:
|
|
122
121
|
- - '='
|
|
123
122
|
- !ruby/object:Gem::Version
|
|
124
|
-
version: 1.
|
|
123
|
+
version: 1.121.0
|
|
125
124
|
- !ruby/object:Gem::Dependency
|
|
126
125
|
name: aws-sdk-s3
|
|
127
126
|
requirement: !ruby/object:Gem::Requirement
|
|
128
127
|
requirements:
|
|
129
128
|
- - '='
|
|
130
129
|
- !ruby/object:Gem::Version
|
|
131
|
-
version: 1.
|
|
130
|
+
version: 1.233.2
|
|
132
131
|
type: :runtime
|
|
133
132
|
prerelease: false
|
|
134
133
|
version_requirements: !ruby/object:Gem::Requirement
|
|
135
134
|
requirements:
|
|
136
135
|
- - '='
|
|
137
136
|
- !ruby/object:Gem::Version
|
|
138
|
-
version: 1.
|
|
137
|
+
version: 1.233.2
|
|
139
138
|
- !ruby/object:Gem::Dependency
|
|
140
139
|
name: retries
|
|
141
140
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -170,28 +169,28 @@ dependencies:
|
|
|
170
169
|
requirements:
|
|
171
170
|
- - '='
|
|
172
171
|
- !ruby/object:Gem::Version
|
|
173
|
-
version: 3.
|
|
172
|
+
version: 3.13.2
|
|
174
173
|
type: :development
|
|
175
174
|
prerelease: false
|
|
176
175
|
version_requirements: !ruby/object:Gem::Requirement
|
|
177
176
|
requirements:
|
|
178
177
|
- - '='
|
|
179
178
|
- !ruby/object:Gem::Version
|
|
180
|
-
version: 3.
|
|
179
|
+
version: 3.13.2
|
|
181
180
|
- !ruby/object:Gem::Dependency
|
|
182
181
|
name: yard
|
|
183
182
|
requirement: !ruby/object:Gem::Requirement
|
|
184
183
|
requirements:
|
|
185
184
|
- - '='
|
|
186
185
|
- !ruby/object:Gem::Version
|
|
187
|
-
version: 0.9.
|
|
186
|
+
version: 0.9.45
|
|
188
187
|
type: :development
|
|
189
188
|
prerelease: false
|
|
190
189
|
version_requirements: !ruby/object:Gem::Requirement
|
|
191
190
|
requirements:
|
|
192
191
|
- - '='
|
|
193
192
|
- !ruby/object:Gem::Version
|
|
194
|
-
version: 0.9.
|
|
193
|
+
version: 0.9.45
|
|
195
194
|
description: ruby_aem_aws is a Ruby client for Shine Solutions Adobe Experience Manager
|
|
196
195
|
(AEM) Platform on AWS
|
|
197
196
|
email:
|
|
@@ -240,7 +239,6 @@ homepage: https://github.com/shinesolutions/ruby_aem_aws
|
|
|
240
239
|
licenses:
|
|
241
240
|
- Apache-2.0
|
|
242
241
|
metadata: {}
|
|
243
|
-
post_install_message:
|
|
244
242
|
rdoc_options: []
|
|
245
243
|
require_paths:
|
|
246
244
|
- lib
|
|
@@ -248,16 +246,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
248
246
|
requirements:
|
|
249
247
|
- - ">="
|
|
250
248
|
- !ruby/object:Gem::Version
|
|
251
|
-
version: '
|
|
249
|
+
version: '4.0'
|
|
252
250
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
253
251
|
requirements:
|
|
254
252
|
- - ">="
|
|
255
253
|
- !ruby/object:Gem::Version
|
|
256
254
|
version: '0'
|
|
257
255
|
requirements: []
|
|
258
|
-
|
|
259
|
-
rubygems_version: 2.6.14.4
|
|
260
|
-
signing_key:
|
|
256
|
+
rubygems_version: 4.0.20
|
|
261
257
|
specification_version: 4
|
|
262
258
|
summary: AEM on AWS API Ruby client
|
|
263
259
|
test_files: []
|