moonshot 2.0.0.beta6 → 3.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (80) hide show
  1. checksums.yaml +5 -5
  2. data/bin/moonshot +4 -1
  3. data/lib/default/bin/build.sh +0 -0
  4. data/lib/moonshot/account_context.rb +2 -0
  5. data/lib/moonshot/always_use_default_source.rb +5 -4
  6. data/lib/moonshot/artifact_repository/s3_bucket.rb +11 -5
  7. data/lib/moonshot/artifact_repository/s3_bucket_via_github_releases.rb +7 -7
  8. data/lib/moonshot/ask_user_source.rb +2 -0
  9. data/lib/moonshot/build_mechanism/github_release.rb +9 -2
  10. data/lib/moonshot/build_mechanism/script.rb +8 -7
  11. data/lib/moonshot/build_mechanism/travis_deploy.rb +5 -5
  12. data/lib/moonshot/build_mechanism/version_proxy.rb +13 -0
  13. data/lib/moonshot/change_set.rb +24 -34
  14. data/lib/moonshot/command.rb +3 -1
  15. data/lib/moonshot/command_line.rb +12 -9
  16. data/lib/moonshot/command_line_dispatcher.rb +5 -7
  17. data/lib/moonshot/commands/build.rb +6 -0
  18. data/lib/moonshot/commands/console.rb +2 -0
  19. data/lib/moonshot/commands/create.rb +16 -2
  20. data/lib/moonshot/commands/delete.rb +9 -0
  21. data/lib/moonshot/commands/deploy.rb +4 -8
  22. data/lib/moonshot/commands/doctor.rb +2 -0
  23. data/lib/moonshot/commands/generate_template.rb +46 -0
  24. data/lib/moonshot/commands/interactive_command.rb +15 -0
  25. data/lib/moonshot/commands/list.rb +2 -0
  26. data/lib/moonshot/commands/new.rb +5 -2
  27. data/lib/moonshot/commands/parameter_arguments.rb +5 -4
  28. data/lib/moonshot/commands/parent_stack_option.rb +2 -0
  29. data/lib/moonshot/commands/push.rb +2 -0
  30. data/lib/moonshot/commands/show_all_events_option.rb +2 -0
  31. data/lib/moonshot/commands/ssh.rb +4 -0
  32. data/lib/moonshot/commands/status.rb +2 -0
  33. data/lib/moonshot/commands/tag_arguments.rb +20 -0
  34. data/lib/moonshot/commands/update.rb +8 -1
  35. data/lib/moonshot/commands/version.rb +2 -0
  36. data/lib/moonshot/controller.rb +28 -13
  37. data/lib/moonshot/controller_config.rb +13 -27
  38. data/lib/moonshot/creds_helper.rb +2 -0
  39. data/lib/moonshot/deployment_mechanism/code_deploy.rb +44 -37
  40. data/lib/moonshot/doctor_helper.rb +14 -15
  41. data/lib/moonshot/dynamic_template.rb +76 -0
  42. data/lib/moonshot/interactive_logger_proxy.rb +4 -4
  43. data/lib/moonshot/json_stack_template.rb +3 -0
  44. data/lib/moonshot/parameter_collection.rb +3 -0
  45. data/lib/moonshot/parent_stack_parameter_loader.rb +7 -3
  46. data/lib/moonshot/resources.rb +2 -0
  47. data/lib/moonshot/resources_helper.rb +5 -1
  48. data/lib/moonshot/shell.rb +8 -8
  49. data/lib/moonshot/ssh_command.rb +2 -0
  50. data/lib/moonshot/ssh_command_builder.rb +3 -1
  51. data/lib/moonshot/ssh_config.rb +3 -2
  52. data/lib/moonshot/ssh_fork_executor.rb +2 -0
  53. data/lib/moonshot/ssh_target_selector.rb +3 -1
  54. data/lib/moonshot/stack.rb +73 -55
  55. data/lib/moonshot/stack_asg_printer.rb +14 -12
  56. data/lib/moonshot/stack_config.rb +3 -2
  57. data/lib/moonshot/stack_events_poller.rb +3 -1
  58. data/lib/moonshot/stack_list_printer.rb +2 -0
  59. data/lib/moonshot/stack_lister.rb +6 -2
  60. data/lib/moonshot/stack_output_printer.rb +2 -0
  61. data/lib/moonshot/stack_parameter.rb +5 -9
  62. data/lib/moonshot/stack_parameter_printer.rb +3 -1
  63. data/lib/moonshot/stack_template.rb +2 -0
  64. data/lib/moonshot/task.rb +3 -0
  65. data/lib/moonshot/tools/asg_rollout/asg.rb +22 -21
  66. data/lib/moonshot/tools/asg_rollout/asg_instance.rb +2 -0
  67. data/lib/moonshot/tools/asg_rollout/hook_exec_environment.rb +2 -0
  68. data/lib/moonshot/tools/asg_rollout/instance_health.rb +2 -0
  69. data/lib/moonshot/tools/asg_rollout.rb +16 -14
  70. data/lib/moonshot/tools/asg_rollout_config.rb +2 -0
  71. data/lib/moonshot/unicode_table.rb +5 -3
  72. data/lib/moonshot/yaml_stack_template.rb +2 -0
  73. data/lib/moonshot.rb +13 -1
  74. data/lib/plugins/backup.rb +24 -30
  75. data/lib/plugins/code_deploy_setup.rb +4 -2
  76. data/lib/plugins/dynamic_template.rb +36 -0
  77. data/lib/plugins/encrypted_parameters/kms_key.rb +26 -5
  78. data/lib/plugins/encrypted_parameters/parameter_encrypter.rb +2 -0
  79. data/lib/plugins/encrypted_parameters.rb +6 -2
  80. metadata +189 -51
metadata CHANGED
@@ -1,35 +1,127 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: moonshot
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0.beta6
4
+ version: 3.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cloud Engineering <engineering@acquia.com>
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-05-15 00:00:00.000000000 Z
11
+ date: 2024-12-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: aws-sdk
14
+ name: aws-sdk-autoscaling
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '2.0'
20
- - - ">="
19
+ version: '1.5'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.5'
27
+ - !ruby/object:Gem::Dependency
28
+ name: aws-sdk-cloudformation
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.4'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.4'
41
+ - !ruby/object:Gem::Dependency
42
+ name: aws-sdk-codedeploy
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
21
46
  - !ruby/object:Gem::Version
22
- version: 2.2.0
47
+ version: '1.5'
23
48
  type: :runtime
24
49
  prerelease: false
25
50
  version_requirements: !ruby/object:Gem::Requirement
26
51
  requirements:
27
52
  - - "~>"
28
53
  - !ruby/object:Gem::Version
29
- version: '2.0'
54
+ version: '1.5'
55
+ - !ruby/object:Gem::Dependency
56
+ name: aws-sdk-ec2
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '1.34'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '1.34'
69
+ - !ruby/object:Gem::Dependency
70
+ name: aws-sdk-elasticloadbalancing
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '1.3'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '1.3'
83
+ - !ruby/object:Gem::Dependency
84
+ name: aws-sdk-iam
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '1.4'
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '1.4'
97
+ - !ruby/object:Gem::Dependency
98
+ name: aws-sdk-s3
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '1.12'
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '1.12'
111
+ - !ruby/object:Gem::Dependency
112
+ name: activesupport
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
30
122
  - - ">="
31
123
  - !ruby/object:Gem::Version
32
- version: 2.2.0
124
+ version: '0'
33
125
  - !ruby/object:Gem::Dependency
34
126
  name: colorize
35
127
  requirement: !ruby/object:Gem::Requirement
@@ -45,63 +137,63 @@ dependencies:
45
137
  - !ruby/object:Gem::Version
46
138
  version: '0'
47
139
  - !ruby/object:Gem::Dependency
48
- name: highline
140
+ name: faraday
49
141
  requirement: !ruby/object:Gem::Requirement
50
142
  requirements:
51
143
  - - "~>"
52
144
  - !ruby/object:Gem::Version
53
- version: 1.7.2
145
+ version: '1.0'
54
146
  type: :runtime
55
147
  prerelease: false
56
148
  version_requirements: !ruby/object:Gem::Requirement
57
149
  requirements:
58
150
  - - "~>"
59
151
  - !ruby/object:Gem::Version
60
- version: 1.7.2
152
+ version: '1.0'
61
153
  - !ruby/object:Gem::Dependency
62
- name: interactive-logger
154
+ name: faraday-rack
63
155
  requirement: !ruby/object:Gem::Requirement
64
156
  requirements:
65
157
  - - "~>"
66
158
  - !ruby/object:Gem::Version
67
- version: 0.1.2
159
+ version: 1.0.0
68
160
  type: :runtime
69
161
  prerelease: false
70
162
  version_requirements: !ruby/object:Gem::Requirement
71
163
  requirements:
72
164
  - - "~>"
73
165
  - !ruby/object:Gem::Version
74
- version: 0.1.2
166
+ version: 1.0.0
75
167
  - !ruby/object:Gem::Dependency
76
- name: rotp
168
+ name: faraday-retry
77
169
  requirement: !ruby/object:Gem::Requirement
78
170
  requirements:
79
171
  - - "~>"
80
172
  - !ruby/object:Gem::Version
81
- version: 2.1.1
173
+ version: '1.0'
82
174
  type: :runtime
83
175
  prerelease: false
84
176
  version_requirements: !ruby/object:Gem::Requirement
85
177
  requirements:
86
178
  - - "~>"
87
179
  - !ruby/object:Gem::Version
88
- version: 2.1.1
180
+ version: '1.0'
89
181
  - !ruby/object:Gem::Dependency
90
- name: ruby-duration
182
+ name: highline
91
183
  requirement: !ruby/object:Gem::Requirement
92
184
  requirements:
93
- - - "~>"
185
+ - - ">="
94
186
  - !ruby/object:Gem::Version
95
- version: 3.2.3
187
+ version: '0'
96
188
  type: :runtime
97
189
  prerelease: false
98
190
  version_requirements: !ruby/object:Gem::Requirement
99
191
  requirements:
100
- - - "~>"
192
+ - - ">="
101
193
  - !ruby/object:Gem::Version
102
- version: 3.2.3
194
+ version: '0'
103
195
  - !ruby/object:Gem::Dependency
104
- name: retriable
196
+ name: interactive-logger
105
197
  requirement: !ruby/object:Gem::Requirement
106
198
  requirements:
107
199
  - - ">="
@@ -115,35 +207,35 @@ dependencies:
115
207
  - !ruby/object:Gem::Version
116
208
  version: '0'
117
209
  - !ruby/object:Gem::Dependency
118
- name: activesupport
210
+ name: pry
119
211
  requirement: !ruby/object:Gem::Requirement
120
212
  requirements:
121
- - - "<"
213
+ - - ">="
122
214
  - !ruby/object:Gem::Version
123
- version: 5.0.0
215
+ version: '0'
124
216
  type: :runtime
125
217
  prerelease: false
126
218
  version_requirements: !ruby/object:Gem::Requirement
127
219
  requirements:
128
- - - "<"
220
+ - - ">="
129
221
  - !ruby/object:Gem::Version
130
- version: 5.0.0
222
+ version: '0'
131
223
  - !ruby/object:Gem::Dependency
132
- name: thor
224
+ name: require_all
133
225
  requirement: !ruby/object:Gem::Requirement
134
226
  requirements:
135
- - - "~>"
227
+ - - ">="
136
228
  - !ruby/object:Gem::Version
137
- version: 0.19.1
229
+ version: '0'
138
230
  type: :runtime
139
231
  prerelease: false
140
232
  version_requirements: !ruby/object:Gem::Requirement
141
233
  requirements:
142
- - - "~>"
234
+ - - ">="
143
235
  - !ruby/object:Gem::Version
144
- version: 0.19.1
236
+ version: '0'
145
237
  - !ruby/object:Gem::Dependency
146
- name: semantic
238
+ name: retriable
147
239
  requirement: !ruby/object:Gem::Requirement
148
240
  requirements:
149
241
  - - ">="
@@ -157,7 +249,7 @@ dependencies:
157
249
  - !ruby/object:Gem::Version
158
250
  version: '0'
159
251
  - !ruby/object:Gem::Dependency
160
- name: travis
252
+ name: rexml
161
253
  requirement: !ruby/object:Gem::Requirement
162
254
  requirements:
163
255
  - - ">="
@@ -171,7 +263,7 @@ dependencies:
171
263
  - !ruby/object:Gem::Version
172
264
  version: '0'
173
265
  - !ruby/object:Gem::Dependency
174
- name: vandamme
266
+ name: rotp
175
267
  requirement: !ruby/object:Gem::Requirement
176
268
  requirements:
177
269
  - - ">="
@@ -185,7 +277,7 @@ dependencies:
185
277
  - !ruby/object:Gem::Version
186
278
  version: '0'
187
279
  - !ruby/object:Gem::Dependency
188
- name: pry
280
+ name: ruby-duration
189
281
  requirement: !ruby/object:Gem::Requirement
190
282
  requirements:
191
283
  - - ">="
@@ -199,21 +291,63 @@ dependencies:
199
291
  - !ruby/object:Gem::Version
200
292
  version: '0'
201
293
  - !ruby/object:Gem::Dependency
202
- name: require_all
294
+ name: semantic
295
+ requirement: !ruby/object:Gem::Requirement
296
+ requirements:
297
+ - - ">="
298
+ - !ruby/object:Gem::Version
299
+ version: '0'
300
+ type: :runtime
301
+ prerelease: false
302
+ version_requirements: !ruby/object:Gem::Requirement
303
+ requirements:
304
+ - - ">="
305
+ - !ruby/object:Gem::Version
306
+ version: '0'
307
+ - !ruby/object:Gem::Dependency
308
+ name: thor
309
+ requirement: !ruby/object:Gem::Requirement
310
+ requirements:
311
+ - - ">="
312
+ - !ruby/object:Gem::Version
313
+ version: '0'
314
+ type: :runtime
315
+ prerelease: false
316
+ version_requirements: !ruby/object:Gem::Requirement
317
+ requirements:
318
+ - - ">="
319
+ - !ruby/object:Gem::Version
320
+ version: '0'
321
+ - !ruby/object:Gem::Dependency
322
+ name: travis
203
323
  requirement: !ruby/object:Gem::Requirement
204
324
  requirements:
205
325
  - - "~>"
206
326
  - !ruby/object:Gem::Version
207
- version: 1.5.0
327
+ version: 1.11.1
208
328
  type: :runtime
209
329
  prerelease: false
210
330
  version_requirements: !ruby/object:Gem::Requirement
211
331
  requirements:
212
332
  - - "~>"
213
333
  - !ruby/object:Gem::Version
214
- version: 1.5.0
334
+ version: 1.11.1
215
335
  - !ruby/object:Gem::Dependency
216
- name: rspec
336
+ name: vandamme
337
+ requirement: !ruby/object:Gem::Requirement
338
+ requirements:
339
+ - - ">="
340
+ - !ruby/object:Gem::Version
341
+ version: '0'
342
+ type: :runtime
343
+ prerelease: false
344
+ version_requirements: !ruby/object:Gem::Requirement
345
+ requirements:
346
+ - - ">="
347
+ - !ruby/object:Gem::Version
348
+ version: '0'
349
+ - !ruby/object:Gem::Dependency
350
+ name: fakefs
217
351
  requirement: !ruby/object:Gem::Requirement
218
352
  requirements:
219
353
  - - ">="
@@ -227,7 +361,7 @@ dependencies:
227
361
  - !ruby/object:Gem::Version
228
362
  version: '0'
229
363
  - !ruby/object:Gem::Dependency
230
- name: simplecov
364
+ name: rspec
231
365
  requirement: !ruby/object:Gem::Requirement
232
366
  requirements:
233
367
  - - ">="
@@ -241,7 +375,7 @@ dependencies:
241
375
  - !ruby/object:Gem::Version
242
376
  version: '0'
243
377
  - !ruby/object:Gem::Dependency
244
- name: fakefs
378
+ name: simplecov
245
379
  requirement: !ruby/object:Gem::Requirement
246
380
  requirements:
247
381
  - - ">="
@@ -286,6 +420,8 @@ files:
286
420
  - lib/moonshot/commands/delete.rb
287
421
  - lib/moonshot/commands/deploy.rb
288
422
  - lib/moonshot/commands/doctor.rb
423
+ - lib/moonshot/commands/generate_template.rb
424
+ - lib/moonshot/commands/interactive_command.rb
289
425
  - lib/moonshot/commands/list.rb
290
426
  - lib/moonshot/commands/new.rb
291
427
  - lib/moonshot/commands/parameter_arguments.rb
@@ -294,6 +430,7 @@ files:
294
430
  - lib/moonshot/commands/show_all_events_option.rb
295
431
  - lib/moonshot/commands/ssh.rb
296
432
  - lib/moonshot/commands/status.rb
433
+ - lib/moonshot/commands/tag_arguments.rb
297
434
  - lib/moonshot/commands/update.rb
298
435
  - lib/moonshot/commands/version.rb
299
436
  - lib/moonshot/config.rb
@@ -302,6 +439,7 @@ files:
302
439
  - lib/moonshot/creds_helper.rb
303
440
  - lib/moonshot/deployment_mechanism/code_deploy.rb
304
441
  - lib/moonshot/doctor_helper.rb
442
+ - lib/moonshot/dynamic_template.rb
305
443
  - lib/moonshot/interactive_logger_proxy.rb
306
444
  - lib/moonshot/json_stack_template.rb
307
445
  - lib/moonshot/parameter_collection.rb
@@ -335,6 +473,7 @@ files:
335
473
  - lib/moonshot/yaml_stack_template.rb
336
474
  - lib/plugins/backup.rb
337
475
  - lib/plugins/code_deploy_setup.rb
476
+ - lib/plugins/dynamic_template.rb
338
477
  - lib/plugins/encrypted_parameters.rb
339
478
  - lib/plugins/encrypted_parameters/kms_key.rb
340
479
  - lib/plugins/encrypted_parameters/parameter_encrypter.rb
@@ -342,7 +481,7 @@ homepage: https://github.com/acquia/moonshot
342
481
  licenses:
343
482
  - Apache-2.0
344
483
  metadata: {}
345
- post_install_message:
484
+ post_install_message:
346
485
  rdoc_options: []
347
486
  require_paths:
348
487
  - lib
@@ -350,16 +489,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
350
489
  requirements:
351
490
  - - ">="
352
491
  - !ruby/object:Gem::Version
353
- version: '0'
492
+ version: 3.3.4
354
493
  required_rubygems_version: !ruby/object:Gem::Requirement
355
494
  requirements:
356
- - - ">"
495
+ - - ">="
357
496
  - !ruby/object:Gem::Version
358
- version: 1.3.1
497
+ version: '0'
359
498
  requirements: []
360
- rubyforge_project:
361
- rubygems_version: 2.6.10
362
- signing_key:
499
+ rubygems_version: 3.1.6
500
+ signing_key:
363
501
  specification_version: 4
364
502
  summary: A library and CLI tool for launching services into AWS
365
503
  test_files: []