terraspace 0.6.20 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.cody/README.md +2 -0
- data/.cody/azurerm/bin/az/configure.sh +5 -1
- data/.cody/azurerm/project.rb +4 -0
- data/.cody/azurerm/role.rb +0 -1
- data/.cody/google/bin/gcloud/configure.sh +2 -1
- data/.cody/google/project.rb +4 -0
- data/.cody/google/role.rb +0 -1
- data/.cody/none/bin/build.sh +15 -0
- data/.cody/none/buildspec.yml +10 -0
- data/.cody/none/project.rb +2 -0
- data/.cody/none/role.rb +4 -0
- data/.cody/shared/script/install/terraform.sh +14 -6
- data/.cody/unit/buildspec.yml +1 -0
- data/.pipedream/pipeline.rb +1 -0
- data/CHANGELOG.md +38 -0
- data/Gemfile +6 -0
- data/README.md +1 -1
- data/lib/templates/examples/hcl/module/main.tf +3 -0
- data/lib/templates/examples/hcl/module/outputs.tf +4 -0
- data/lib/templates/examples/hcl/module/variables.tf +5 -0
- data/lib/templates/examples/hcl/stack/main.tf +4 -0
- data/lib/templates/examples/hcl/stack/outputs.tf +4 -0
- data/lib/templates/examples/hcl/stack/variables.tf +5 -0
- data/lib/templates/examples/ruby/module/main.rb +3 -0
- data/lib/templates/examples/ruby/module/outputs.rb +4 -0
- data/lib/templates/examples/ruby/module/variables.rb +5 -0
- data/lib/templates/examples/ruby/stack/main.rb +4 -0
- data/lib/templates/examples/ruby/stack/outputs.rb +4 -0
- data/lib/templates/examples/ruby/stack/variables.rb +5 -0
- data/lib/templates/hcl/project/config/terraform/backend.tf.tt +5 -13
- data/lib/templates/hcl/project/config/terraform/provider.tf +4 -14
- data/lib/terraspace/autodetect.rb +15 -0
- data/lib/terraspace/autoloader.rb +6 -1
- data/lib/terraspace/builder.rb +1 -9
- data/lib/terraspace/bundle.rb +54 -0
- data/lib/terraspace/cli/concern.rb +113 -0
- data/lib/terraspace/cli/help/new/example.md +7 -1
- data/lib/terraspace/cli/help.rb +7 -8
- data/lib/terraspace/cli/new/example.rb +36 -0
- data/lib/terraspace/cli/new/helpers/plugin_gem.rb +2 -14
- data/lib/terraspace/cli/new/helpers.rb +1 -1
- data/lib/terraspace/cli/new/module.rb +1 -1
- data/lib/terraspace/cli/new/plugin/helper.rb +1 -1
- data/lib/terraspace/cli/new/plugin.rb +1 -1
- data/lib/terraspace/cli/new/project.rb +11 -17
- data/lib/terraspace/cli/new/sequence.rb +1 -1
- data/lib/terraspace/cli/new/source/core.rb +7 -6
- data/lib/terraspace/cli/new/source/plugin.rb +2 -2
- data/lib/terraspace/cli/new/stack.rb +3 -2
- data/lib/terraspace/cli/new/test.rb +12 -2
- data/lib/terraspace/cli/new.rb +4 -0
- data/lib/terraspace/cli/{check_setup.rb → setup/check.rb} +5 -3
- data/lib/terraspace/cli/setup.rb +9 -0
- data/lib/terraspace/cli/tfc_concern.rb +1 -1
- data/lib/terraspace/cli.rb +34 -27
- data/lib/terraspace/command.rb +3 -2
- data/lib/terraspace/compiler/commands_concern.rb +0 -8
- data/lib/terraspace/compiler/expander/backend.rb +44 -0
- data/lib/terraspace/compiler/expander.rb +11 -19
- data/lib/terraspace/compiler/strategy/mod/text_file.rb +35 -0
- data/lib/terraspace/compiler/strategy/mod.rb +2 -5
- data/lib/terraspace/core.rb +10 -0
- data/lib/terraspace/plugin/expander/friendly.rb +1 -0
- data/lib/terraspace/plugin/expander/interface.rb +13 -2
- data/lib/terraspace/terraform/api/client.rb +1 -1
- data/lib/terraspace/terraform/args/custom.rb +11 -6
- data/lib/terraspace/terraform/args/pass.rb +110 -0
- data/lib/terraspace/terraform/args/{default.rb → thor.rb} +1 -3
- data/lib/terraspace/{compiler → terraform/runner}/backend/parser.rb +1 -1
- data/lib/terraspace/{compiler → terraform/runner}/backend.rb +14 -1
- data/lib/terraspace/terraform/runner/retryer.rb +1 -1
- data/lib/terraspace/terraform/runner.rb +25 -15
- data/lib/terraspace/terraform/tfc/sync.rb +1 -1
- data/lib/terraspace/version.rb +1 -1
- data/lib/terraspace.rb +1 -0
- data/spec/terraspace/seeder/content_spec.rb +2 -2
- data/spec/terraspace/terraform/args/custom_spec.rb +4 -4
- data/spec/terraspace/terraform/args/pass_spec.rb +101 -0
- data/terraspace.gemspec +3 -4
- metadata +61 -50
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: terraspace
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tung Nguyen
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-12-
|
11
|
+
date: 2021-12-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -24,6 +24,20 @@ dependencies:
|
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: bundler
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
27
41
|
- !ruby/object:Gem::Dependency
|
28
42
|
name: cli-format
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -150,20 +164,34 @@ dependencies:
|
|
150
164
|
- - ">="
|
151
165
|
- !ruby/object:Gem::Version
|
152
166
|
version: '0'
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: rexml
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - ">="
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '0'
|
174
|
+
type: :runtime
|
175
|
+
prerelease: false
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - ">="
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: '0'
|
153
181
|
- !ruby/object:Gem::Dependency
|
154
182
|
name: terraspace-bundler
|
155
183
|
requirement: !ruby/object:Gem::Requirement
|
156
184
|
requirements:
|
157
185
|
- - "~>"
|
158
186
|
- !ruby/object:Gem::Version
|
159
|
-
version: 0.4.
|
187
|
+
version: 0.4.4
|
160
188
|
type: :runtime
|
161
189
|
prerelease: false
|
162
190
|
version_requirements: !ruby/object:Gem::Requirement
|
163
191
|
requirements:
|
164
192
|
- - "~>"
|
165
193
|
- !ruby/object:Gem::Version
|
166
|
-
version: 0.4.
|
194
|
+
version: 0.4.4
|
167
195
|
- !ruby/object:Gem::Dependency
|
168
196
|
name: thor
|
169
197
|
requirement: !ruby/object:Gem::Requirement
|
@@ -206,48 +234,6 @@ dependencies:
|
|
206
234
|
- - ">="
|
207
235
|
- !ruby/object:Gem::Version
|
208
236
|
version: '0'
|
209
|
-
- !ruby/object:Gem::Dependency
|
210
|
-
name: terraspace_plugin_aws
|
211
|
-
requirement: !ruby/object:Gem::Requirement
|
212
|
-
requirements:
|
213
|
-
- - "~>"
|
214
|
-
- !ruby/object:Gem::Version
|
215
|
-
version: 0.3.0
|
216
|
-
type: :runtime
|
217
|
-
prerelease: false
|
218
|
-
version_requirements: !ruby/object:Gem::Requirement
|
219
|
-
requirements:
|
220
|
-
- - "~>"
|
221
|
-
- !ruby/object:Gem::Version
|
222
|
-
version: 0.3.0
|
223
|
-
- !ruby/object:Gem::Dependency
|
224
|
-
name: terraspace_plugin_azurerm
|
225
|
-
requirement: !ruby/object:Gem::Requirement
|
226
|
-
requirements:
|
227
|
-
- - "~>"
|
228
|
-
- !ruby/object:Gem::Version
|
229
|
-
version: 0.3.0
|
230
|
-
type: :runtime
|
231
|
-
prerelease: false
|
232
|
-
version_requirements: !ruby/object:Gem::Requirement
|
233
|
-
requirements:
|
234
|
-
- - "~>"
|
235
|
-
- !ruby/object:Gem::Version
|
236
|
-
version: 0.3.0
|
237
|
-
- !ruby/object:Gem::Dependency
|
238
|
-
name: terraspace_plugin_google
|
239
|
-
requirement: !ruby/object:Gem::Requirement
|
240
|
-
requirements:
|
241
|
-
- - "~>"
|
242
|
-
- !ruby/object:Gem::Version
|
243
|
-
version: 0.3.0
|
244
|
-
type: :runtime
|
245
|
-
prerelease: false
|
246
|
-
version_requirements: !ruby/object:Gem::Requirement
|
247
|
-
requirements:
|
248
|
-
- - "~>"
|
249
|
-
- !ruby/object:Gem::Version
|
250
|
-
version: 0.3.0
|
251
237
|
- !ruby/object:Gem::Dependency
|
252
238
|
name: rspec-terraspace
|
253
239
|
requirement: !ruby/object:Gem::Requirement
|
@@ -359,6 +345,10 @@ files:
|
|
359
345
|
- ".cody/google/buildspec.yml"
|
360
346
|
- ".cody/google/project.rb"
|
361
347
|
- ".cody/google/role.rb"
|
348
|
+
- ".cody/none/bin/build.sh"
|
349
|
+
- ".cody/none/buildspec.yml"
|
350
|
+
- ".cody/none/project.rb"
|
351
|
+
- ".cody/none/role.rb"
|
362
352
|
- ".cody/shared/script/install.sh"
|
363
353
|
- ".cody/shared/script/install/terraform.sh"
|
364
354
|
- ".cody/shared/script/install/terraspace.sh"
|
@@ -396,6 +386,18 @@ files:
|
|
396
386
|
- lib/templates/base/project/Terrafile
|
397
387
|
- lib/templates/base/project/config/app.rb
|
398
388
|
- lib/templates/base/shim/terraspace
|
389
|
+
- lib/templates/examples/hcl/module/main.tf
|
390
|
+
- lib/templates/examples/hcl/module/outputs.tf
|
391
|
+
- lib/templates/examples/hcl/module/variables.tf
|
392
|
+
- lib/templates/examples/hcl/stack/main.tf
|
393
|
+
- lib/templates/examples/hcl/stack/outputs.tf
|
394
|
+
- lib/templates/examples/hcl/stack/variables.tf
|
395
|
+
- lib/templates/examples/ruby/module/main.rb
|
396
|
+
- lib/templates/examples/ruby/module/outputs.rb
|
397
|
+
- lib/templates/examples/ruby/module/variables.rb
|
398
|
+
- lib/templates/examples/ruby/stack/main.rb
|
399
|
+
- lib/templates/examples/ruby/stack/outputs.rb
|
400
|
+
- lib/templates/examples/ruby/stack/variables.rb
|
399
401
|
- lib/templates/hcl/module/main.tf
|
400
402
|
- lib/templates/hcl/module/outputs.tf
|
401
403
|
- lib/templates/hcl/module/variables.tf
|
@@ -463,6 +465,7 @@ files:
|
|
463
465
|
- lib/terraspace/all/summary.rb
|
464
466
|
- lib/terraspace/app.rb
|
465
467
|
- lib/terraspace/app/inits.rb
|
468
|
+
- lib/terraspace/autodetect.rb
|
466
469
|
- lib/terraspace/autoloader.rb
|
467
470
|
- lib/terraspace/booter.rb
|
468
471
|
- lib/terraspace/builder.rb
|
@@ -473,7 +476,6 @@ files:
|
|
473
476
|
- lib/terraspace/cli/base.rb
|
474
477
|
- lib/terraspace/cli/build/placeholder.rb
|
475
478
|
- lib/terraspace/cli/bundle.rb
|
476
|
-
- lib/terraspace/cli/check_setup.rb
|
477
479
|
- lib/terraspace/cli/clean.rb
|
478
480
|
- lib/terraspace/cli/clean/all.rb
|
479
481
|
- lib/terraspace/cli/clean/base.rb
|
@@ -483,6 +485,7 @@ files:
|
|
483
485
|
- lib/terraspace/cli/completer.rb
|
484
486
|
- lib/terraspace/cli/completer/script.rb
|
485
487
|
- lib/terraspace/cli/completer/script.sh
|
488
|
+
- lib/terraspace/cli/concern.rb
|
486
489
|
- lib/terraspace/cli/concerns/source_dirs.rb
|
487
490
|
- lib/terraspace/cli/down.rb
|
488
491
|
- lib/terraspace/cli/fmt.rb
|
@@ -550,6 +553,7 @@ files:
|
|
550
553
|
- lib/terraspace/cli/logs/concern.rb
|
551
554
|
- lib/terraspace/cli/new.rb
|
552
555
|
- lib/terraspace/cli/new/arg.rb
|
556
|
+
- lib/terraspace/cli/new/example.rb
|
553
557
|
- lib/terraspace/cli/new/git_hook.rb
|
554
558
|
- lib/terraspace/cli/new/helper.rb
|
555
559
|
- lib/terraspace/cli/new/helpers.rb
|
@@ -567,6 +571,8 @@ files:
|
|
567
571
|
- lib/terraspace/cli/new/stack.rb
|
568
572
|
- lib/terraspace/cli/new/test.rb
|
569
573
|
- lib/terraspace/cli/seed.rb
|
574
|
+
- lib/terraspace/cli/setup.rb
|
575
|
+
- lib/terraspace/cli/setup/check.rb
|
570
576
|
- lib/terraspace/cli/state.rb
|
571
577
|
- lib/terraspace/cli/summary.rb
|
572
578
|
- lib/terraspace/cli/test.rb
|
@@ -575,8 +581,6 @@ files:
|
|
575
581
|
- lib/terraspace/cli/tfc_concern.rb
|
576
582
|
- lib/terraspace/cli/up.rb
|
577
583
|
- lib/terraspace/command.rb
|
578
|
-
- lib/terraspace/compiler/backend.rb
|
579
|
-
- lib/terraspace/compiler/backend/parser.rb
|
580
584
|
- lib/terraspace/compiler/basename.rb
|
581
585
|
- lib/terraspace/compiler/builder.rb
|
582
586
|
- lib/terraspace/compiler/builder/skip.rb
|
@@ -607,6 +611,7 @@ files:
|
|
607
611
|
- lib/terraspace/compiler/erb/helpers.rb
|
608
612
|
- lib/terraspace/compiler/erb/render.rb
|
609
613
|
- lib/terraspace/compiler/expander.rb
|
614
|
+
- lib/terraspace/compiler/expander/backend.rb
|
610
615
|
- lib/terraspace/compiler/helper_extender.rb
|
611
616
|
- lib/terraspace/compiler/select.rb
|
612
617
|
- lib/terraspace/compiler/strategy/abstract_base.rb
|
@@ -614,6 +619,7 @@ files:
|
|
614
619
|
- lib/terraspace/compiler/strategy/mod/base.rb
|
615
620
|
- lib/terraspace/compiler/strategy/mod/pass.rb
|
616
621
|
- lib/terraspace/compiler/strategy/mod/rb.rb
|
622
|
+
- lib/terraspace/compiler/strategy/mod/text_file.rb
|
617
623
|
- lib/terraspace/compiler/strategy/mod/tf.rb
|
618
624
|
- lib/terraspace/compiler/strategy/mod/tfvars.rb
|
619
625
|
- lib/terraspace/compiler/strategy/tfvar.rb
|
@@ -675,9 +681,10 @@ files:
|
|
675
681
|
- lib/terraspace/terraform/api/vars/rb.rb
|
676
682
|
- lib/terraspace/terraform/api/workspace.rb
|
677
683
|
- lib/terraspace/terraform/args/custom.rb
|
678
|
-
- lib/terraspace/terraform/args/default.rb
|
679
684
|
- lib/terraspace/terraform/args/dsl.rb
|
685
|
+
- lib/terraspace/terraform/args/pass.rb
|
680
686
|
- lib/terraspace/terraform/args/shorthands.rb
|
687
|
+
- lib/terraspace/terraform/args/thor.rb
|
681
688
|
- lib/terraspace/terraform/ihooks/after/plan.rb
|
682
689
|
- lib/terraspace/terraform/ihooks/base.rb
|
683
690
|
- lib/terraspace/terraform/ihooks/before/plan.rb
|
@@ -687,6 +694,8 @@ files:
|
|
687
694
|
- lib/terraspace/terraform/remote_state/output_proxy.rb
|
688
695
|
- lib/terraspace/terraform/remote_state/unresolved.rb
|
689
696
|
- lib/terraspace/terraform/runner.rb
|
697
|
+
- lib/terraspace/terraform/runner/backend.rb
|
698
|
+
- lib/terraspace/terraform/runner/backend/parser.rb
|
690
699
|
- lib/terraspace/terraform/runner/retryer.rb
|
691
700
|
- lib/terraspace/terraform/tfc/runs.rb
|
692
701
|
- lib/terraspace/terraform/tfc/runs/base.rb
|
@@ -829,6 +838,7 @@ files:
|
|
829
838
|
- spec/terraspace/seeder/content_spec.rb
|
830
839
|
- spec/terraspace/seeder_spec.rb
|
831
840
|
- spec/terraspace/terraform/args/custom_spec.rb
|
841
|
+
- spec/terraspace/terraform/args/pass_spec.rb
|
832
842
|
- spec/terraspace/terraform/remote_state/fetcher_spec.rb
|
833
843
|
- spec/terraspace/terraform/remote_state/marker/output_spec.rb
|
834
844
|
- spec/terraspace/terraform/remote_state/output_proxy_spec.rb
|
@@ -982,6 +992,7 @@ test_files:
|
|
982
992
|
- spec/terraspace/seeder/content_spec.rb
|
983
993
|
- spec/terraspace/seeder_spec.rb
|
984
994
|
- spec/terraspace/terraform/args/custom_spec.rb
|
995
|
+
- spec/terraspace/terraform/args/pass_spec.rb
|
985
996
|
- spec/terraspace/terraform/remote_state/fetcher_spec.rb
|
986
997
|
- spec/terraspace/terraform/remote_state/marker/output_spec.rb
|
987
998
|
- spec/terraspace/terraform/remote_state/output_proxy_spec.rb
|