firespring_dev_commands 2.2.1.pre.alpha.4 → 2.5.0.pre.alpha.1
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/README.md +1 -1
- data/lib/firespring_dev_commands/audit/report.rb +2 -9
- data/lib/firespring_dev_commands/aws/cloudformation.rb +3 -10
- data/lib/firespring_dev_commands/common.rb +2 -22
- data/lib/firespring_dev_commands/docker/status.rb +0 -20
- data/lib/firespring_dev_commands/docker.rb +16 -86
- data/lib/firespring_dev_commands/eol/aws.rb +2 -10
- data/lib/firespring_dev_commands/eol.rb +2 -22
- data/lib/firespring_dev_commands/git.rb +24 -37
- data/lib/firespring_dev_commands/jira/issue.rb +1 -3
- data/lib/firespring_dev_commands/node.rb +1 -1
- data/lib/firespring_dev_commands/php.rb +12 -28
- data/lib/firespring_dev_commands/platform.rb +31 -38
- data/lib/firespring_dev_commands/ruby.rb +3 -6
- data/lib/firespring_dev_commands/target_process/query.rb +4 -30
- data/lib/firespring_dev_commands/target_process/release.rb +1 -1
- data/lib/firespring_dev_commands/target_process/team_assignment.rb +1 -1
- data/lib/firespring_dev_commands/target_process/user.rb +1 -13
- data/lib/firespring_dev_commands/target_process/user_story.rb +1 -1
- data/lib/firespring_dev_commands/target_process/user_story_history.rb +1 -1
- data/lib/firespring_dev_commands/target_process.rb +7 -24
- data/lib/firespring_dev_commands/templates/aws.rb +6 -17
- data/lib/firespring_dev_commands/templates/base_interface.rb +2 -2
- data/lib/firespring_dev_commands/templates/docker/application.rb +2 -2
- data/lib/firespring_dev_commands/templates/docker/node/application.rb +5 -55
- data/lib/firespring_dev_commands/templates/docker/php/application.rb +16 -58
- data/lib/firespring_dev_commands/templates/docker/ruby/application.rb +5 -54
- data/lib/firespring_dev_commands/templates/eol.rb +2 -9
- data/lib/firespring_dev_commands/templates/git.rb +0 -165
- data/lib/firespring_dev_commands/version.rb +1 -1
- data/lib/firespring_dev_commands.rb +1 -1
- metadata +35 -96
- data/lib/firespring_dev_commands/aws/route53.rb +0 -107
- data/lib/firespring_dev_commands/bloom_growth/rock.rb +0 -34
- data/lib/firespring_dev_commands/bloom_growth/seat.rb +0 -16
- data/lib/firespring_dev_commands/bloom_growth/user.rb +0 -43
- data/lib/firespring_dev_commands/bloom_growth.rb +0 -132
- data/lib/firespring_dev_commands/certificate.rb +0 -59
- data/lib/firespring_dev_commands/coverage/base.rb +0 -16
- data/lib/firespring_dev_commands/coverage/cobertura.rb +0 -86
- data/lib/firespring_dev_commands/coverage/none.rb +0 -21
- data/lib/firespring_dev_commands/docker/desktop.rb +0 -59
- data/lib/firespring_dev_commands/eol/node.rb +0 -37
- data/lib/firespring_dev_commands/eol/php.rb +0 -45
- data/lib/firespring_dev_commands/eol/ruby.rb +0 -37
- data/lib/firespring_dev_commands/jira/parent.rb +0 -19
- data/lib/firespring_dev_commands/os.rb +0 -35
- data/lib/firespring_dev_commands/port.rb +0 -24
- data/lib/firespring_dev_commands/target_process/time.rb +0 -32
- data/lib/firespring_dev_commands/templates/aws/services/route53.rb +0 -106
- data/lib/firespring_dev_commands/templates/certificate.rb +0 -41
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: firespring_dev_commands
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.5.0.pre.alpha.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Firespring
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-11-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -16,168 +16,154 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 7.1.
|
19
|
+
version: 7.1.1
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 7.1.
|
26
|
+
version: 7.1.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: aws-sdk-cloudformation
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 1.
|
33
|
+
version: 1.83.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 1.
|
40
|
+
version: 1.83.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: aws-sdk-codepipeline
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 1.
|
47
|
+
version: 1.59.0
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 1.
|
54
|
+
version: 1.59.0
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: aws-sdk-ecr
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 1.
|
61
|
+
version: 1.61.0
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 1.
|
68
|
+
version: 1.61.0
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: aws-sdk-elasticache
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 1.
|
75
|
+
version: 1.88.0
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 1.
|
82
|
+
version: 1.88.0
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: aws-sdk-lambda
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: 1.
|
89
|
+
version: 1.101.0
|
90
90
|
type: :runtime
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: 1.
|
96
|
+
version: 1.101.0
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: aws-sdk-opensearchservice
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
101
|
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: 1.
|
103
|
+
version: 1.24.0
|
104
104
|
type: :runtime
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: 1.
|
110
|
+
version: 1.24.0
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: aws-sdk-rds
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
115
|
- - "~>"
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: 1.
|
117
|
+
version: 1.183.0
|
118
118
|
type: :runtime
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
122
|
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version: 1.
|
125
|
-
- !ruby/object:Gem::Dependency
|
126
|
-
name: aws-sdk-route53
|
127
|
-
requirement: !ruby/object:Gem::Requirement
|
128
|
-
requirements:
|
129
|
-
- - "~>"
|
130
|
-
- !ruby/object:Gem::Version
|
131
|
-
version: 1.87.0
|
132
|
-
type: :runtime
|
133
|
-
prerelease: false
|
134
|
-
version_requirements: !ruby/object:Gem::Requirement
|
135
|
-
requirements:
|
136
|
-
- - "~>"
|
137
|
-
- !ruby/object:Gem::Version
|
138
|
-
version: 1.87.0
|
124
|
+
version: 1.183.0
|
139
125
|
- !ruby/object:Gem::Dependency
|
140
126
|
name: aws-sdk-s3
|
141
127
|
requirement: !ruby/object:Gem::Requirement
|
142
128
|
requirements:
|
143
129
|
- - "~>"
|
144
130
|
- !ruby/object:Gem::Version
|
145
|
-
version: 1.
|
131
|
+
version: 1.127.0
|
146
132
|
type: :runtime
|
147
133
|
prerelease: false
|
148
134
|
version_requirements: !ruby/object:Gem::Requirement
|
149
135
|
requirements:
|
150
136
|
- - "~>"
|
151
137
|
- !ruby/object:Gem::Version
|
152
|
-
version: 1.
|
138
|
+
version: 1.127.0
|
153
139
|
- !ruby/object:Gem::Dependency
|
154
140
|
name: aws-sdk-ssm
|
155
141
|
requirement: !ruby/object:Gem::Requirement
|
156
142
|
requirements:
|
157
143
|
- - "~>"
|
158
144
|
- !ruby/object:Gem::Version
|
159
|
-
version: 1.
|
145
|
+
version: 1.154.0
|
160
146
|
type: :runtime
|
161
147
|
prerelease: false
|
162
148
|
version_requirements: !ruby/object:Gem::Requirement
|
163
149
|
requirements:
|
164
150
|
- - "~>"
|
165
151
|
- !ruby/object:Gem::Version
|
166
|
-
version: 1.
|
152
|
+
version: 1.154.0
|
167
153
|
- !ruby/object:Gem::Dependency
|
168
154
|
name: aws-sdk-sts
|
169
155
|
requirement: !ruby/object:Gem::Requirement
|
170
156
|
requirements:
|
171
157
|
- - "~>"
|
172
158
|
- !ruby/object:Gem::Version
|
173
|
-
version: 1.
|
159
|
+
version: 1.10.0
|
174
160
|
type: :runtime
|
175
161
|
prerelease: false
|
176
162
|
version_requirements: !ruby/object:Gem::Requirement
|
177
163
|
requirements:
|
178
164
|
- - "~>"
|
179
165
|
- !ruby/object:Gem::Version
|
180
|
-
version: 1.
|
166
|
+
version: 1.10.0
|
181
167
|
- !ruby/object:Gem::Dependency
|
182
168
|
name: colorize
|
183
169
|
requirement: !ruby/object:Gem::Requirement
|
@@ -220,20 +206,6 @@ dependencies:
|
|
220
206
|
- - "~>"
|
221
207
|
- !ruby/object:Gem::Version
|
222
208
|
version: 2.8.1
|
223
|
-
- !ruby/object:Gem::Dependency
|
224
|
-
name: faraday-retry
|
225
|
-
requirement: !ruby/object:Gem::Requirement
|
226
|
-
requirements:
|
227
|
-
- - "~>"
|
228
|
-
- !ruby/object:Gem::Version
|
229
|
-
version: '2.0'
|
230
|
-
type: :runtime
|
231
|
-
prerelease: false
|
232
|
-
version_requirements: !ruby/object:Gem::Requirement
|
233
|
-
requirements:
|
234
|
-
- - "~>"
|
235
|
-
- !ruby/object:Gem::Version
|
236
|
-
version: '2.0'
|
237
209
|
- !ruby/object:Gem::Dependency
|
238
210
|
name: git
|
239
211
|
requirement: !ruby/object:Gem::Requirement
|
@@ -277,75 +249,61 @@ dependencies:
|
|
277
249
|
- !ruby/object:Gem::Version
|
278
250
|
version: 2.3.0
|
279
251
|
- !ruby/object:Gem::Dependency
|
280
|
-
name:
|
252
|
+
name: libxml-ruby
|
281
253
|
requirement: !ruby/object:Gem::Requirement
|
282
254
|
requirements:
|
283
|
-
- -
|
284
|
-
- !ruby/object:Gem::Version
|
285
|
-
version: '8.1'
|
286
|
-
type: :runtime
|
287
|
-
prerelease: false
|
288
|
-
version_requirements: !ruby/object:Gem::Requirement
|
289
|
-
requirements:
|
290
|
-
- - "~>"
|
291
|
-
- !ruby/object:Gem::Version
|
292
|
-
version: '8.1'
|
293
|
-
- !ruby/object:Gem::Dependency
|
294
|
-
name: ox
|
295
|
-
requirement: !ruby/object:Gem::Requirement
|
296
|
-
requirements:
|
297
|
-
- - "~>"
|
255
|
+
- - '='
|
298
256
|
- !ruby/object:Gem::Version
|
299
|
-
version:
|
257
|
+
version: 4.1.1
|
300
258
|
type: :runtime
|
301
259
|
prerelease: false
|
302
260
|
version_requirements: !ruby/object:Gem::Requirement
|
303
261
|
requirements:
|
304
|
-
- -
|
262
|
+
- - '='
|
305
263
|
- !ruby/object:Gem::Version
|
306
|
-
version:
|
264
|
+
version: 4.1.1
|
307
265
|
- !ruby/object:Gem::Dependency
|
308
266
|
name: public_suffix
|
309
267
|
requirement: !ruby/object:Gem::Requirement
|
310
268
|
requirements:
|
311
269
|
- - '='
|
312
270
|
- !ruby/object:Gem::Version
|
313
|
-
version: 5.0.
|
271
|
+
version: 5.0.1
|
314
272
|
type: :runtime
|
315
273
|
prerelease: false
|
316
274
|
version_requirements: !ruby/object:Gem::Requirement
|
317
275
|
requirements:
|
318
276
|
- - '='
|
319
277
|
- !ruby/object:Gem::Version
|
320
|
-
version: 5.0.
|
278
|
+
version: 5.0.1
|
321
279
|
- !ruby/object:Gem::Dependency
|
322
280
|
name: rake
|
323
281
|
requirement: !ruby/object:Gem::Requirement
|
324
282
|
requirements:
|
325
283
|
- - "~>"
|
326
284
|
- !ruby/object:Gem::Version
|
327
|
-
version: 13.
|
285
|
+
version: 13.0.6
|
328
286
|
type: :runtime
|
329
287
|
prerelease: false
|
330
288
|
version_requirements: !ruby/object:Gem::Requirement
|
331
289
|
requirements:
|
332
290
|
- - "~>"
|
333
291
|
- !ruby/object:Gem::Version
|
334
|
-
version: 13.
|
292
|
+
version: 13.0.6
|
335
293
|
- !ruby/object:Gem::Dependency
|
336
294
|
name: slack-ruby-client
|
337
295
|
requirement: !ruby/object:Gem::Requirement
|
338
296
|
requirements:
|
339
297
|
- - "~>"
|
340
298
|
- !ruby/object:Gem::Version
|
341
|
-
version: 2.
|
299
|
+
version: 2.1.0
|
342
300
|
type: :runtime
|
343
301
|
prerelease: false
|
344
302
|
version_requirements: !ruby/object:Gem::Requirement
|
345
303
|
requirements:
|
346
304
|
- - "~>"
|
347
305
|
- !ruby/object:Gem::Version
|
348
|
-
version: 2.
|
306
|
+
version: 2.1.0
|
349
307
|
description: Ruby library for creating/maintaining your development environment
|
350
308
|
email: opensource@firespring.com
|
351
309
|
executables: []
|
@@ -368,49 +326,33 @@ files:
|
|
368
326
|
- lib/firespring_dev_commands/aws/login.rb
|
369
327
|
- lib/firespring_dev_commands/aws/parameter.rb
|
370
328
|
- lib/firespring_dev_commands/aws/profile.rb
|
371
|
-
- lib/firespring_dev_commands/aws/route53.rb
|
372
329
|
- lib/firespring_dev_commands/aws/s3.rb
|
373
|
-
- lib/firespring_dev_commands/bloom_growth.rb
|
374
|
-
- lib/firespring_dev_commands/bloom_growth/rock.rb
|
375
|
-
- lib/firespring_dev_commands/bloom_growth/seat.rb
|
376
|
-
- lib/firespring_dev_commands/bloom_growth/user.rb
|
377
330
|
- lib/firespring_dev_commands/boolean.rb
|
378
|
-
- lib/firespring_dev_commands/certificate.rb
|
379
331
|
- lib/firespring_dev_commands/common.rb
|
380
|
-
- lib/firespring_dev_commands/coverage/base.rb
|
381
|
-
- lib/firespring_dev_commands/coverage/cobertura.rb
|
382
|
-
- lib/firespring_dev_commands/coverage/none.rb
|
383
332
|
- lib/firespring_dev_commands/daterange.rb
|
384
333
|
- lib/firespring_dev_commands/docker.rb
|
385
334
|
- lib/firespring_dev_commands/docker/compose.rb
|
386
|
-
- lib/firespring_dev_commands/docker/desktop.rb
|
387
335
|
- lib/firespring_dev_commands/docker/status.rb
|
388
336
|
- lib/firespring_dev_commands/dotenv.rb
|
389
337
|
- lib/firespring_dev_commands/env.rb
|
390
338
|
- lib/firespring_dev_commands/eol.rb
|
391
339
|
- lib/firespring_dev_commands/eol/aws.rb
|
392
|
-
- lib/firespring_dev_commands/eol/node.rb
|
393
|
-
- lib/firespring_dev_commands/eol/php.rb
|
394
340
|
- lib/firespring_dev_commands/eol/product_version.rb
|
395
|
-
- lib/firespring_dev_commands/eol/ruby.rb
|
396
341
|
- lib/firespring_dev_commands/git.rb
|
397
342
|
- lib/firespring_dev_commands/git/info.rb
|
398
343
|
- lib/firespring_dev_commands/jira.rb
|
399
344
|
- lib/firespring_dev_commands/jira/histories.rb
|
400
345
|
- lib/firespring_dev_commands/jira/history.rb
|
401
346
|
- lib/firespring_dev_commands/jira/issue.rb
|
402
|
-
- lib/firespring_dev_commands/jira/parent.rb
|
403
347
|
- lib/firespring_dev_commands/jira/project.rb
|
404
348
|
- lib/firespring_dev_commands/jira/user.rb
|
405
349
|
- lib/firespring_dev_commands/jira/user/type.rb
|
406
350
|
- lib/firespring_dev_commands/logger.rb
|
407
351
|
- lib/firespring_dev_commands/node.rb
|
408
352
|
- lib/firespring_dev_commands/node/audit.rb
|
409
|
-
- lib/firespring_dev_commands/os.rb
|
410
353
|
- lib/firespring_dev_commands/php.rb
|
411
354
|
- lib/firespring_dev_commands/php/audit.rb
|
412
355
|
- lib/firespring_dev_commands/platform.rb
|
413
|
-
- lib/firespring_dev_commands/port.rb
|
414
356
|
- lib/firespring_dev_commands/rake.rb
|
415
357
|
- lib/firespring_dev_commands/ruby.rb
|
416
358
|
- lib/firespring_dev_commands/ruby/audit.rb
|
@@ -426,14 +368,11 @@ files:
|
|
426
368
|
- lib/firespring_dev_commands/target_process/release.rb
|
427
369
|
- lib/firespring_dev_commands/target_process/team.rb
|
428
370
|
- lib/firespring_dev_commands/target_process/team_assignment.rb
|
429
|
-
- lib/firespring_dev_commands/target_process/time.rb
|
430
371
|
- lib/firespring_dev_commands/target_process/user.rb
|
431
372
|
- lib/firespring_dev_commands/target_process/user_story.rb
|
432
373
|
- lib/firespring_dev_commands/target_process/user_story_history.rb
|
433
374
|
- lib/firespring_dev_commands/templates/aws.rb
|
434
|
-
- lib/firespring_dev_commands/templates/aws/services/route53.rb
|
435
375
|
- lib/firespring_dev_commands/templates/base_interface.rb
|
436
|
-
- lib/firespring_dev_commands/templates/certificate.rb
|
437
376
|
- lib/firespring_dev_commands/templates/ci.rb
|
438
377
|
- lib/firespring_dev_commands/templates/config.rb
|
439
378
|
- lib/firespring_dev_commands/templates/docker/application.rb
|
@@ -1,107 +0,0 @@
|
|
1
|
-
module Dev
|
2
|
-
class Aws
|
3
|
-
# Class for performing Route53 functions
|
4
|
-
class Route53
|
5
|
-
attr_reader :client
|
6
|
-
|
7
|
-
def initialize(domains)
|
8
|
-
@client = ::Aws::Route53::Client.new
|
9
|
-
@domains = domains
|
10
|
-
end
|
11
|
-
|
12
|
-
private def zones
|
13
|
-
if @domains.empty?
|
14
|
-
all_zones
|
15
|
-
else
|
16
|
-
zones_by_domain_names(@domains)
|
17
|
-
end
|
18
|
-
end
|
19
|
-
|
20
|
-
private def all_zones
|
21
|
-
[].tap do |ary|
|
22
|
-
Dev::Aws.each_page(client, :list_hosted_zones) do |response|
|
23
|
-
response.hosted_zones&.each do |hosted_zone|
|
24
|
-
ary << hosted_zone unless hosted_zone.config.private_zone
|
25
|
-
end
|
26
|
-
end
|
27
|
-
end
|
28
|
-
end
|
29
|
-
|
30
|
-
private def zones_by_domain_names(domains)
|
31
|
-
[].tap do |ary|
|
32
|
-
domains.each do |domain_name|
|
33
|
-
response = client.list_hosted_zones_by_name({dns_name: domain_name})
|
34
|
-
target = response.hosted_zones.find { |it| it.name.chomp('.') == domain_name }
|
35
|
-
raise "The #{domain_name} hosted zone not found." unless target
|
36
|
-
|
37
|
-
ary << target
|
38
|
-
end
|
39
|
-
end
|
40
|
-
end
|
41
|
-
|
42
|
-
private def target_config_id(zone_id)
|
43
|
-
client.list_query_logging_configs(
|
44
|
-
hosted_zone_id: zone_id,
|
45
|
-
max_results: '1'
|
46
|
-
).query_logging_configs&.first&.id
|
47
|
-
end
|
48
|
-
|
49
|
-
private def pretty_puts(output)
|
50
|
-
# Find the maximum length of the keys
|
51
|
-
max_key_length = output.keys.map(&:to_s).max_by(&:length).length
|
52
|
-
|
53
|
-
output.each do |key, value|
|
54
|
-
puts "#{key.to_s.ljust(max_key_length)}\t=>\t#{value}"
|
55
|
-
end
|
56
|
-
end
|
57
|
-
|
58
|
-
def list_query_configs
|
59
|
-
output = {}
|
60
|
-
zones.each do |zone|
|
61
|
-
target_config_id = target_config_id(zone.id)
|
62
|
-
|
63
|
-
output[zone.name] = if target_config_id
|
64
|
-
"Config\t=>\t#{target_config_id}".colorize(:green)
|
65
|
-
else
|
66
|
-
'No query logging config assigned.'.colorize(:red)
|
67
|
-
end
|
68
|
-
end
|
69
|
-
|
70
|
-
pretty_puts(output)
|
71
|
-
end
|
72
|
-
|
73
|
-
def activate_query_logging(log_group)
|
74
|
-
output = {}
|
75
|
-
|
76
|
-
zones.each do |zone|
|
77
|
-
response = client.create_query_logging_config(
|
78
|
-
hosted_zone_id: zone.id,
|
79
|
-
cloud_watch_logs_log_group_arn: log_group
|
80
|
-
)
|
81
|
-
output[zone.id] = response.location
|
82
|
-
rescue ::Aws::Route53::Errors::ServiceError => e
|
83
|
-
raise "Error: #{e.message}" unless e.instance_of?(::Aws::Route53::Errors::QueryLoggingConfigAlreadyExists)
|
84
|
-
|
85
|
-
output[zone.id] = e.message
|
86
|
-
end
|
87
|
-
pretty_puts(output)
|
88
|
-
end
|
89
|
-
|
90
|
-
def deactivate_query_logging
|
91
|
-
output = {}
|
92
|
-
zones.each do |zone|
|
93
|
-
target_config_id = target_config_id(zone.id)
|
94
|
-
if target_config_id
|
95
|
-
client.delete_query_logging_config(
|
96
|
-
id: target_config_id
|
97
|
-
)
|
98
|
-
output[zone.id] = 'Query logging config removed.'.colorize(:green)
|
99
|
-
else
|
100
|
-
output[zone.id] = 'No query logging config assigned.'.colorize(:red)
|
101
|
-
end
|
102
|
-
end
|
103
|
-
pretty_puts(output)
|
104
|
-
end
|
105
|
-
end
|
106
|
-
end
|
107
|
-
end
|
@@ -1,34 +0,0 @@
|
|
1
|
-
module Dev
|
2
|
-
class BloomGrowth
|
3
|
-
# Class containing rock information
|
4
|
-
class Rock
|
5
|
-
attr_accessor :data, :id, :type, :name, :owner, :complete, :completion_id, :created, :due
|
6
|
-
attr_reader :state
|
7
|
-
|
8
|
-
def initialize(data)
|
9
|
-
@data = data
|
10
|
-
@id = data['Id']
|
11
|
-
@type = data['Type']
|
12
|
-
@name = data['Name'].to_s.strip
|
13
|
-
@owner = User.new(data['Owner']) if data['Owner']
|
14
|
-
@complete = data['Complete']
|
15
|
-
@completion_id = data['Completion']
|
16
|
-
@created = Time.parse(data['CreateTime']) if data['CreateTime']
|
17
|
-
@due = Time.parse(data['DueDate']) if data['DueDate']
|
18
|
-
@archived = data['Archived']
|
19
|
-
end
|
20
|
-
|
21
|
-
# Convert the completion_id bloom growth gives us into a text version
|
22
|
-
def state
|
23
|
-
case completion_id
|
24
|
-
when 0
|
25
|
-
'Off Track'
|
26
|
-
when 1
|
27
|
-
'On Track'
|
28
|
-
when 2
|
29
|
-
'Complete'
|
30
|
-
end
|
31
|
-
end
|
32
|
-
end
|
33
|
-
end
|
34
|
-
end
|
@@ -1,16 +0,0 @@
|
|
1
|
-
module Dev
|
2
|
-
class BloomGrowth
|
3
|
-
# Class containing seat information
|
4
|
-
class Seat
|
5
|
-
attr_accessor :data, :id, :type, :name
|
6
|
-
|
7
|
-
def initialize(data)
|
8
|
-
@data = data
|
9
|
-
position = data.dig('Group', 'Position')
|
10
|
-
@id = position&.fetch('Id')
|
11
|
-
@type = position&.fetch('Type')
|
12
|
-
@name = position&.fetch('Name').to_s.strip
|
13
|
-
end
|
14
|
-
end
|
15
|
-
end
|
16
|
-
end
|
@@ -1,43 +0,0 @@
|
|
1
|
-
module Dev
|
2
|
-
class BloomGrowth
|
3
|
-
# Class containing user information
|
4
|
-
class User
|
5
|
-
attr_accessor :data, :id, :type, :name, :rocks, :direct_reports, :seats
|
6
|
-
|
7
|
-
def initialize(data)
|
8
|
-
@data = data
|
9
|
-
@id = data['Id']
|
10
|
-
@type = data['Type']
|
11
|
-
@name = data['Name'].to_s.strip
|
12
|
-
@rocks = nil
|
13
|
-
@direct_reports = nil
|
14
|
-
@seats = nil
|
15
|
-
end
|
16
|
-
|
17
|
-
def rocks
|
18
|
-
@rocks ||= [].tap do |ary|
|
19
|
-
Dev::BloomGrowth.new.get("/api/v1/rocks/user/#{id}") do |data|
|
20
|
-
ary << Rock.new(data)
|
21
|
-
end
|
22
|
-
end
|
23
|
-
end
|
24
|
-
|
25
|
-
def direct_reports
|
26
|
-
@direct_reports ||= [].tap do |ary|
|
27
|
-
Dev::BloomGrowth.new.get("/api/v1/users/#{id}/directreports") do |data|
|
28
|
-
ary << User.new(data)
|
29
|
-
end
|
30
|
-
end
|
31
|
-
end
|
32
|
-
|
33
|
-
def seats
|
34
|
-
@seats ||= [].tap do |ary|
|
35
|
-
Dev::BloomGrowth.new.get("/api/v1/users/#{id}/seats") do |data|
|
36
|
-
ary << Seat.new(data)
|
37
|
-
puts ary.last.inspect
|
38
|
-
end
|
39
|
-
end
|
40
|
-
end
|
41
|
-
end
|
42
|
-
end
|
43
|
-
end
|