terraspace 0.0.0 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (332) hide show
  1. checksums.yaml +4 -4
  2. data/.cody/README.md +25 -0
  3. data/.cody/aws/bin/build.sh +13 -0
  4. data/.cody/aws/buildspec.yml +10 -0
  5. data/.cody/aws/project.rb +2 -0
  6. data/.cody/aws/role.rb +6 -0
  7. data/.cody/azurerm/bin/az/configure.sh +23 -0
  8. data/.cody/azurerm/bin/az/install.sh +17 -0
  9. data/.cody/azurerm/bin/build.sh +20 -0
  10. data/.cody/azurerm/bin/install.sh +6 -0
  11. data/.cody/azurerm/buildspec.yml +11 -0
  12. data/.cody/azurerm/project.rb +2 -0
  13. data/.cody/azurerm/role.rb +5 -0
  14. data/.cody/google/bin/build.sh +17 -0
  15. data/.cody/google/bin/gcloud/configure.sh +15 -0
  16. data/.cody/google/bin/gcloud/install.sh +18 -0
  17. data/.cody/google/bin/install.sh +6 -0
  18. data/.cody/google/buildspec.yml +11 -0
  19. data/.cody/google/project.rb +2 -0
  20. data/.cody/google/role.rb +5 -0
  21. data/.cody/shared/script/install.sh +6 -0
  22. data/.cody/shared/script/install/terraform.sh +11 -0
  23. data/.cody/shared/script/install/terraspace.sh +72 -0
  24. data/.cody/unit/bin/build.sh +4 -0
  25. data/.cody/unit/buildspec.yml +9 -0
  26. data/.cody/unit/project.rb +2 -0
  27. data/.github/ISSUE_TEMPLATE.md +7 -0
  28. data/.github/ISSUE_TEMPLATE/bug_report.md +84 -0
  29. data/.github/ISSUE_TEMPLATE/documentation.md +12 -0
  30. data/.github/ISSUE_TEMPLATE/feature_request.md +64 -0
  31. data/.github/ISSUE_TEMPLATE/question.md +14 -0
  32. data/.github/PULL_REQUEST_TEMPLATE.md +50 -0
  33. data/.gitignore +18 -9
  34. data/.pipedream/README.md +25 -0
  35. data/.pipedream/pipeline.rb +17 -0
  36. data/.pipedream/schedule.rb +3 -0
  37. data/.rspec +2 -2
  38. data/CHANGELOG.md +7 -0
  39. data/CONDUCT.md +1 -0
  40. data/CONTRIBUTING.md +1 -0
  41. data/Gemfile +1 -4
  42. data/Guardfile +19 -0
  43. data/LICENSE.txt +201 -21
  44. data/README.md +60 -27
  45. data/Rakefile +10 -2
  46. data/exe/terraspace +14 -0
  47. data/lib/templates/base/project/.gitignore +34 -0
  48. data/lib/templates/base/project/Gemfile.tt +9 -0
  49. data/lib/templates/base/project/Terrafile +14 -0
  50. data/lib/templates/base/project/config/app.rb +4 -0
  51. data/lib/templates/hcl/module/main.tf +1 -0
  52. data/lib/templates/hcl/module/outputs.tf +1 -0
  53. data/lib/templates/hcl/module/variables.tf +1 -0
  54. data/lib/templates/hcl/project/config/terraform/backend.tf.tt +18 -0
  55. data/lib/templates/hcl/project/config/terraform/provider.tf +16 -0
  56. data/lib/templates/hcl/stack/main.tf +1 -0
  57. data/lib/templates/hcl/stack/outputs.tf +1 -0
  58. data/lib/templates/hcl/stack/variables.tf +1 -0
  59. data/lib/templates/plugin/.gitignore +12 -0
  60. data/lib/templates/plugin/.rspec +3 -0
  61. data/lib/templates/plugin/CHANGELOG.md +7 -0
  62. data/lib/templates/plugin/Gemfile +7 -0
  63. data/lib/templates/plugin/LICENSE.txt +201 -0
  64. data/lib/templates/plugin/README.md.tt +34 -0
  65. data/lib/templates/plugin/Rakefile +6 -0
  66. data/{bin/console → lib/templates/plugin/bin/console.tt} +1 -1
  67. data/{bin → lib/templates/plugin/bin}/setup +0 -0
  68. data/lib/templates/plugin/lib/templates/hcl/module/main.tf +1 -0
  69. data/lib/templates/plugin/lib/templates/hcl/module/outputs.tf +1 -0
  70. data/lib/templates/plugin/lib/templates/hcl/module/variables.tf +1 -0
  71. data/lib/templates/plugin/lib/templates/hcl/project/config/terraform/backend.tf.tt +6 -0
  72. data/lib/templates/plugin/lib/templates/hcl/project/config/terraform/provider.tf +3 -0
  73. data/lib/templates/plugin/lib/templates/hcl/stack/main.tf +1 -0
  74. data/lib/templates/plugin/lib/templates/hcl/stack/outputs.tf +1 -0
  75. data/lib/templates/plugin/lib/templates/hcl/stack/variables.tf +1 -0
  76. data/lib/templates/plugin/lib/templates/ruby/module/main.rb +1 -0
  77. data/lib/templates/plugin/lib/templates/ruby/module/outputs.rb +1 -0
  78. data/lib/templates/plugin/lib/templates/ruby/module/variables.rb +1 -0
  79. data/lib/templates/plugin/lib/templates/ruby/project/config/terraform/backend.rb.tt +4 -0
  80. data/lib/templates/plugin/lib/templates/ruby/project/config/terraform/provider.rb +3 -0
  81. data/lib/templates/plugin/lib/templates/ruby/stack/main.rb +1 -0
  82. data/lib/templates/plugin/lib/templates/ruby/stack/outputs.rb +1 -0
  83. data/lib/templates/plugin/lib/templates/ruby/stack/variables.rb +1 -0
  84. data/lib/templates/plugin/lib/templates/test/rspec/module/test/.rspec +3 -0
  85. data/lib/templates/plugin/lib/templates/test/rspec/module/test/Gemfile +9 -0
  86. data/lib/templates/plugin/lib/templates/test/rspec/module/test/spec/fixtures/stack/main.tf +1 -0
  87. data/lib/templates/plugin/lib/templates/test/rspec/module/test/spec/fixtures/stack/outputs.tf +1 -0
  88. data/lib/templates/plugin/lib/templates/test/rspec/module/test/spec/fixtures/stack/variables.tf +1 -0
  89. data/lib/templates/plugin/lib/templates/test/rspec/module/test/spec/main_spec.rb +29 -0
  90. data/lib/templates/plugin/lib/templates/test/rspec/module/test/spec/spec_helper.rb +13 -0
  91. data/lib/templates/plugin/lib/terraspace_plugin_%name%.rb.tt +36 -0
  92. data/lib/templates/plugin/lib/terraspace_plugin_%name%/autoloader.rb.tt +23 -0
  93. data/lib/templates/plugin/lib/terraspace_plugin_%name%/clients.rb.tt +14 -0
  94. data/lib/templates/plugin/lib/terraspace_plugin_%name%/interfaces/backend.rb.tt +12 -0
  95. data/lib/templates/plugin/lib/terraspace_plugin_%name%/interfaces/config.rb.tt +18 -0
  96. data/lib/templates/plugin/lib/terraspace_plugin_%name%/interfaces/expander.rb.tt +15 -0
  97. data/lib/templates/plugin/lib/terraspace_plugin_%name%/interfaces/layer.rb.tt +20 -0
  98. data/lib/templates/plugin/lib/terraspace_plugin_%name%/version.rb.tt +3 -0
  99. data/lib/templates/plugin/spec/spec_helper.rb.tt +14 -0
  100. data/lib/templates/plugin/spec/terraspace_provider_%name%_spec.rb.tt +5 -0
  101. data/lib/templates/plugin/terraspace_plugin_%name%.gemspec.tt +27 -0
  102. data/lib/templates/ruby/module/main.rb +1 -0
  103. data/lib/templates/ruby/module/outputs.rb +1 -0
  104. data/lib/templates/ruby/module/variables.rb +1 -0
  105. data/lib/templates/ruby/project/config/terraform/backend.rb.tt +9 -0
  106. data/lib/templates/ruby/project/config/terraform/provider.rb +7 -0
  107. data/lib/templates/ruby/stack/main.rb +1 -0
  108. data/lib/templates/ruby/stack/outputs.rb +1 -0
  109. data/lib/templates/ruby/stack/variables.rb +1 -0
  110. data/lib/terraspace.rb +22 -1
  111. data/lib/terraspace/app.rb +30 -0
  112. data/lib/terraspace/app/hooks.rb +18 -0
  113. data/lib/terraspace/autoloader.rb +25 -0
  114. data/lib/terraspace/booter.rb +19 -0
  115. data/lib/terraspace/builder.rb +87 -0
  116. data/lib/terraspace/bundle.rb +54 -0
  117. data/lib/terraspace/cli.rb +185 -0
  118. data/lib/terraspace/cli/base.rb +11 -0
  119. data/lib/terraspace/cli/build.rb +7 -0
  120. data/lib/terraspace/cli/bundle.rb +28 -0
  121. data/lib/terraspace/cli/check_setup.rb +73 -0
  122. data/lib/terraspace/cli/clean.rb +12 -0
  123. data/lib/terraspace/cli/commander.rb +14 -0
  124. data/lib/terraspace/cli/help.rb +11 -0
  125. data/lib/terraspace/cli/help/bundle.md +14 -0
  126. data/lib/terraspace/cli/help/completion.md +20 -0
  127. data/lib/terraspace/cli/help/completion_script.md +3 -0
  128. data/lib/terraspace/cli/help/update.md +5 -0
  129. data/lib/terraspace/cli/info.rb +30 -0
  130. data/lib/terraspace/cli/new.rb +32 -0
  131. data/lib/terraspace/cli/new/helper.rb +15 -0
  132. data/lib/terraspace/cli/new/helper/plugin_gem.rb +12 -0
  133. data/lib/terraspace/cli/new/module.rb +26 -0
  134. data/lib/terraspace/cli/new/plugin.rb +20 -0
  135. data/lib/terraspace/cli/new/plugin/helper.rb +15 -0
  136. data/lib/terraspace/cli/new/project.rb +110 -0
  137. data/lib/terraspace/cli/new/sequence.rb +59 -0
  138. data/lib/terraspace/cli/new/source/core.rb +63 -0
  139. data/lib/terraspace/cli/new/source/plugin.rb +20 -0
  140. data/lib/terraspace/cli/new/source/test.rb +26 -0
  141. data/lib/terraspace/cli/new/stack.rb +26 -0
  142. data/lib/terraspace/cli/new/test/base.rb +17 -0
  143. data/lib/terraspace/cli/new/test/bootstrap.rb +18 -0
  144. data/lib/terraspace/cli/new/test/module.rb +15 -0
  145. data/lib/terraspace/cli/new/test/project.rb +15 -0
  146. data/lib/terraspace/cli/seed.rb +9 -0
  147. data/lib/terraspace/cli/summary.rb +61 -0
  148. data/lib/terraspace/cli/test.rb +35 -0
  149. data/lib/terraspace/command.rb +100 -0
  150. data/lib/terraspace/compiler/backend.rb +66 -0
  151. data/lib/terraspace/compiler/basename.rb +10 -0
  152. data/lib/terraspace/compiler/builder.rb +74 -0
  153. data/lib/terraspace/compiler/cleaner.rb +46 -0
  154. data/lib/terraspace/compiler/cleaner/backend_change.rb +45 -0
  155. data/lib/terraspace/compiler/dsl/base.rb +12 -0
  156. data/lib/terraspace/compiler/dsl/meta/local.rb +7 -0
  157. data/lib/terraspace/compiler/dsl/meta/var.rb +7 -0
  158. data/lib/terraspace/compiler/dsl/mod.rb +19 -0
  159. data/lib/terraspace/compiler/dsl/syntax/helpers/common.rb +28 -0
  160. data/lib/terraspace/compiler/dsl/syntax/mod.rb +6 -0
  161. data/lib/terraspace/compiler/dsl/syntax/mod/backend.rb +18 -0
  162. data/lib/terraspace/compiler/dsl/syntax/mod/data.rb +9 -0
  163. data/lib/terraspace/compiler/dsl/syntax/mod/locals.rb +7 -0
  164. data/lib/terraspace/compiler/dsl/syntax/mod/module.rb +10 -0
  165. data/lib/terraspace/compiler/dsl/syntax/mod/output.rb +8 -0
  166. data/lib/terraspace/compiler/dsl/syntax/mod/provider.rb +8 -0
  167. data/lib/terraspace/compiler/dsl/syntax/mod/resource.rb +24 -0
  168. data/lib/terraspace/compiler/dsl/syntax/mod/terraform.rb +8 -0
  169. data/lib/terraspace/compiler/dsl/syntax/mod/variable.rb +12 -0
  170. data/lib/terraspace/compiler/dsl/syntax/tfvar.rb +5 -0
  171. data/lib/terraspace/compiler/dsl/syntax/tfvar/common.rb +7 -0
  172. data/lib/terraspace/compiler/dsl/tfvars.rb +29 -0
  173. data/lib/terraspace/compiler/erb/context.rb +11 -0
  174. data/lib/terraspace/compiler/erb/render.rb +12 -0
  175. data/lib/terraspace/compiler/expander.rb +19 -0
  176. data/lib/terraspace/compiler/strategy/abstract_base.rb +7 -0
  177. data/lib/terraspace/compiler/strategy/mod.rb +15 -0
  178. data/lib/terraspace/compiler/strategy/mod/base.rb +4 -0
  179. data/lib/terraspace/compiler/strategy/mod/pass.rb +7 -0
  180. data/lib/terraspace/compiler/strategy/mod/rb.rb +7 -0
  181. data/lib/terraspace/compiler/strategy/mod/tf.rb +7 -0
  182. data/lib/terraspace/compiler/strategy/tfvar.rb +42 -0
  183. data/lib/terraspace/compiler/strategy/tfvar/base.rb +4 -0
  184. data/lib/terraspace/compiler/strategy/tfvar/layer.rb +110 -0
  185. data/lib/terraspace/compiler/strategy/tfvar/rb.rb +7 -0
  186. data/lib/terraspace/compiler/strategy/tfvar/tfvars.rb +7 -0
  187. data/lib/terraspace/compiler/writer.rb +36 -0
  188. data/lib/terraspace/completer.rb +159 -0
  189. data/lib/terraspace/completer/script.rb +6 -0
  190. data/lib/terraspace/completer/script.sh +10 -0
  191. data/lib/terraspace/core.rb +46 -0
  192. data/lib/terraspace/ext.rb +2 -0
  193. data/lib/terraspace/ext/bundler.rb +7 -0
  194. data/lib/terraspace/ext/core/module.rb +19 -0
  195. data/lib/terraspace/logger.rb +26 -0
  196. data/lib/terraspace/mod.rb +100 -0
  197. data/lib/terraspace/mod/remote.rb +18 -0
  198. data/lib/terraspace/plugin.rb +73 -0
  199. data/lib/terraspace/plugin/backend/interface.rb +8 -0
  200. data/lib/terraspace/plugin/config/interface.rb +27 -0
  201. data/lib/terraspace/plugin/decorator/interface.rb +8 -0
  202. data/lib/terraspace/plugin/expander/generic.rb +5 -0
  203. data/lib/terraspace/plugin/expander/interface.rb +52 -0
  204. data/lib/terraspace/plugin/finder.rb +45 -0
  205. data/lib/terraspace/plugin/meta.rb +29 -0
  206. data/lib/terraspace/plugin/summary/interface.rb +129 -0
  207. data/lib/terraspace/seeder.rb +66 -0
  208. data/lib/terraspace/seeder/actions.rb +24 -0
  209. data/lib/terraspace/seeder/content.rb +84 -0
  210. data/lib/terraspace/seeder/where.rb +30 -0
  211. data/lib/terraspace/terraform/args/custom.rb +47 -0
  212. data/lib/terraspace/terraform/args/default.rb +96 -0
  213. data/lib/terraspace/terraform/args/dsl.rb +30 -0
  214. data/lib/terraspace/terraform/args/shorthands.rb +47 -0
  215. data/lib/terraspace/terraform/hooks/builder.rb +40 -0
  216. data/lib/terraspace/terraform/hooks/dsl.rb +19 -0
  217. data/lib/terraspace/terraform/runner.rb +77 -0
  218. data/lib/terraspace/tester.rb +29 -0
  219. data/lib/terraspace/tester/finder.rb +25 -0
  220. data/lib/terraspace/tester/meta.rb +25 -0
  221. data/lib/terraspace/util.rb +13 -0
  222. data/lib/terraspace/util/logging.rb +7 -0
  223. data/lib/terraspace/util/sh.rb +19 -0
  224. data/lib/terraspace/util/sure.rb +22 -0
  225. data/lib/terraspace/version.rb +1 -1
  226. data/spec/cli_spec.rb +13 -0
  227. data/spec/fixtures/cache_build_dir/variables.tf +9 -0
  228. data/spec/fixtures/initialized/modules.json +29 -0
  229. data/spec/fixtures/orphans/config/backend.rb +8 -0
  230. data/spec/fixtures/orphans/config/provider.rb +3 -0
  231. data/spec/fixtures/orphans/config/providers_different.rb +6 -0
  232. data/spec/fixtures/orphans/config/providers_same.rb +16 -0
  233. data/spec/fixtures/orphans/data/aws_ami.rb +8 -0
  234. data/spec/fixtures/orphans/data/aws_instance.rb +16 -0
  235. data/spec/fixtures/orphans/locals/forum.rb +4 -0
  236. data/spec/fixtures/orphans/locals/qux.rb +7 -0
  237. data/spec/fixtures/orphans/module/core/main.rb +5 -0
  238. data/spec/fixtures/orphans/resource/security_group/hash_example.rb +18 -0
  239. data/spec/fixtures/orphans/resource/vpc/count_example.rb +7 -0
  240. data/spec/fixtures/orphans/terraform/terraform.rb +3 -0
  241. data/spec/fixtures/projects/hcl/aws/app/modules/instance/main.tf +30 -0
  242. data/spec/fixtures/projects/hcl/aws/app/modules/instance/variables.tf +7 -0
  243. data/spec/fixtures/projects/hcl/aws/app/modules/vpc/file.txt +1 -0
  244. data/spec/fixtures/projects/hcl/aws/app/modules/vpc/main.tf +7 -0
  245. data/spec/fixtures/projects/hcl/aws/app/modules/vpc/variables.tf +11 -0
  246. data/spec/fixtures/projects/hcl/aws/app/stacks/core/main.tf +3 -0
  247. data/spec/fixtures/projects/hcl/aws/app/stacks/monolith/main.tf +3 -0
  248. data/spec/fixtures/projects/hcl/aws/config/backend.tf +9 -0
  249. data/spec/fixtures/projects/hcl/aws/config/provider.tf +3 -0
  250. data/spec/fixtures/projects/hcl/google/app/modules/vpc/main.tf +4 -0
  251. data/spec/fixtures/projects/hcl/google/app/modules/vpc/outputs.tf +4 -0
  252. data/spec/fixtures/projects/hcl/google/app/modules/vpc/variables.tf +5 -0
  253. data/spec/fixtures/projects/hcl/google/config/backend.tf +6 -0
  254. data/spec/fixtures/projects/hcl/google/config/provider.tf +0 -0
  255. data/spec/fixtures/projects/ruby/aws/app/modules/existing_backend/backend.rb +7 -0
  256. data/spec/fixtures/projects/ruby/aws/app/modules/existing_backend/main.rb +7 -0
  257. data/spec/fixtures/projects/ruby/aws/app/modules/existing_backend/outputs.rb +4 -0
  258. data/spec/fixtures/projects/ruby/aws/app/modules/existing_backend/variables.rb +9 -0
  259. data/spec/fixtures/projects/ruby/aws/app/modules/instance/main.rb +28 -0
  260. data/spec/fixtures/projects/ruby/aws/app/modules/instance/outputs.rb +3 -0
  261. data/spec/fixtures/projects/ruby/aws/app/modules/instance/variables.rb +7 -0
  262. data/spec/fixtures/projects/ruby/aws/app/modules/security_group/main.rb +16 -0
  263. data/spec/fixtures/projects/ruby/aws/app/modules/security_group/variables.rb +5 -0
  264. data/spec/fixtures/projects/ruby/aws/app/modules/sg_child/main.rb +7 -0
  265. data/spec/fixtures/projects/ruby/aws/app/modules/sg_child/variables.rb +5 -0
  266. data/spec/fixtures/projects/ruby/aws/app/modules/sg_parent/main.rb +14 -0
  267. data/spec/fixtures/projects/ruby/aws/app/modules/sg_parent/variables.rb +3 -0
  268. data/spec/fixtures/projects/ruby/aws/app/modules/vpc/main.rb +7 -0
  269. data/spec/fixtures/projects/ruby/aws/app/modules/vpc/outputs.rb +4 -0
  270. data/spec/fixtures/projects/ruby/aws/app/modules/vpc/variables.rb +9 -0
  271. data/spec/fixtures/projects/ruby/aws/app/modules/wordpress/main.rb +0 -0
  272. data/spec/fixtures/projects/ruby/aws/app/stacks/core/a.tfvars +0 -0
  273. data/spec/fixtures/projects/ruby/aws/app/stacks/core/b.tfvars +1 -0
  274. data/spec/fixtures/projects/ruby/aws/app/stacks/core/main.rb +6 -0
  275. data/spec/fixtures/projects/ruby/aws/app/stacks/core/outputs.rb +4 -0
  276. data/spec/fixtures/projects/ruby/aws/app/stacks/core/variables.rb +2 -0
  277. data/spec/fixtures/projects/ruby/aws/app/stacks/gke/main.rb +0 -0
  278. data/spec/fixtures/projects/ruby/aws/app/stacks/monolith/main.rb +3 -0
  279. data/spec/fixtures/projects/ruby/aws/app/stacks/nested/main.rb +5 -0
  280. data/spec/fixtures/projects/ruby/aws/config/backend.rb +7 -0
  281. data/spec/fixtures/projects/ruby/aws/config/cli/args.rb +11 -0
  282. data/spec/fixtures/projects/ruby/aws/config/cli/hooks.rb +8 -0
  283. data/spec/fixtures/projects/ruby/aws/config/provider.rb +3 -0
  284. data/spec/fixtures/projects/ruby/aws/seed/tfvars/modules/instance/base.rb +1 -0
  285. data/spec/fixtures/projects/ruby/aws/seed/tfvars/modules/instance/dev.rb +1 -0
  286. data/spec/fixtures/projects/ruby/aws/seed/tfvars/modules/instance/prod.rb +0 -0
  287. data/spec/fixtures/projects/ruby/aws/seed/tfvars/modules/security_group/base.rb +1 -0
  288. data/spec/fixtures/projects/ruby/aws/seed/tfvars/modules/security_group/dev.rb +1 -0
  289. data/spec/fixtures/projects/ruby/aws/seed/tfvars/modules/vpc/base.tfvars +2 -0
  290. data/spec/fixtures/projects/ruby/aws/seed/tfvars/modules/vpc/dev.tfvars +1 -0
  291. data/spec/fixtures/projects/ruby/aws/seed/tfvars/modules/vpc/prod.tfvars +1 -0
  292. data/spec/fixtures/projects/ruby/aws/seed/tfvars/stacks/core/base.rb +4 -0
  293. data/spec/fixtures/projects/ruby/aws/seed/tfvars/stacks/core/dev.rb +1 -0
  294. data/spec/fixtures/projects/ruby/aws/seed/tfvars/stacks/core/prod.rb +1 -0
  295. data/spec/fixtures/projects/ruby/aws/vendor/modules/vpc/main.rb +7 -0
  296. data/spec/fixtures/projects/ruby/aws/vendor/modules/vpc/outputs.rb +4 -0
  297. data/spec/fixtures/projects/ruby/aws/vendor/modules/vpc/variables.rb +9 -0
  298. data/spec/fixtures/projects/ruby/google/app/modules/firewall/main.rb +17 -0
  299. data/spec/fixtures/projects/ruby/google/app/modules/network/main.rb +4 -0
  300. data/spec/fixtures/projects/ruby/google/app/modules/vm-simple/main.rb +28 -0
  301. data/spec/fixtures/projects/ruby/google/app/modules/vm/main.rb +32 -0
  302. data/spec/fixtures/projects/ruby/google/app/modules/vm/outputs.rb +3 -0
  303. data/spec/fixtures/projects/ruby/google/app/modules/vm/variables.rb +19 -0
  304. data/spec/fixtures/projects/ruby/google/app/stacks/core/main.rb +5 -0
  305. data/spec/fixtures/projects/ruby/google/config/backend.rb +4 -0
  306. data/spec/fixtures/projects/ruby/google/config/provider.rb +14 -0
  307. data/spec/fixtures/terraform/args/multiple.rb +4 -0
  308. data/spec/fixtures/terraform/args/single.rb +10 -0
  309. data/spec/fixtures/terraform/hooks/multiple.rb +3 -0
  310. data/spec/fixtures/terraform/hooks/single.rb +7 -0
  311. data/spec/spec_helper.rb +32 -0
  312. data/spec/terraspace/compiler/dsl/backend_spec.rb +33 -0
  313. data/spec/terraspace/compiler/dsl/data_spec.rb +30 -0
  314. data/spec/terraspace/compiler/dsl/locals_spec.rb +44 -0
  315. data/spec/terraspace/compiler/dsl/meta/local_spec.rb +10 -0
  316. data/spec/terraspace/compiler/dsl/meta/var_spec.rb +10 -0
  317. data/spec/terraspace/compiler/dsl/module_spec.rb +14 -0
  318. data/spec/terraspace/compiler/dsl/monolith_spec.rb +23 -0
  319. data/spec/terraspace/compiler/dsl/output_spec.rb +22 -0
  320. data/spec/terraspace/compiler/dsl/provider_spec.rb +72 -0
  321. data/spec/terraspace/compiler/dsl/resource/security_group_spec.rb +43 -0
  322. data/spec/terraspace/compiler/dsl/resource_spec.rb +64 -0
  323. data/spec/terraspace/compiler/dsl/terraform_spec.rb +21 -0
  324. data/spec/terraspace/compiler/dsl/variable_spec.rb +28 -0
  325. data/spec/terraspace/provider/expander/generic_spec.rb +30 -0
  326. data/spec/terraspace/seeder/content_spec.rb +49 -0
  327. data/spec/terraspace/seeder_spec.rb +20 -0
  328. data/spec/terraspace/terraform/args/custom_spec.rb +48 -0
  329. data/spec/terraspace/terraform/hooks/builder_spec.rb +35 -0
  330. data/terraspace.gemspec +31 -15
  331. metadata +687 -14
  332. data/.travis.yml +0 -6
@@ -1,26 +1,42 @@
1
- require_relative 'lib/terraspace/version'
1
+ # coding: utf-8
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require "terraspace/version"
2
5
 
3
6
  Gem::Specification.new do |spec|
4
7
  spec.name = "terraspace"
5
8
  spec.version = Terraspace::VERSION
6
9
  spec.authors = ["Tung Nguyen"]
7
- spec.email = ["tongueroo@gmail.com"]
8
-
9
- spec.summary = "Terraform Tool"
10
+ spec.email = ["tung@boltops.com"]
11
+ spec.summary = "Terraspace: The Terraspace Framework"
10
12
  spec.homepage = "https://github.com/boltops-tools/terraspace"
11
- spec.license = "MIT"
12
- spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
13
-
14
- # spec.metadata["allowed_push_host"] = "TODO: Set to 'http://mygemserver.com'"
15
-
16
- spec.metadata["homepage_uri"] = spec.homepage
13
+ spec.license = "Apache-2.0"
17
14
 
18
- # Specify which files should be added to the gem when it is released.
19
- # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
20
- spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
21
- `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
22
- end
15
+ spec.files = File.directory?('.git') ? `git ls-files`.split($/) : Dir.glob("**/*")
23
16
  spec.bindir = "exe"
24
17
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
18
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
25
19
  spec.require_paths = ["lib"]
20
+
21
+ spec.add_dependency "activesupport"
22
+ spec.add_dependency "cli-format"
23
+ spec.add_dependency "dsl_evaluator"
24
+ spec.add_dependency "hcl_parser"
25
+ spec.add_dependency "memoist"
26
+ spec.add_dependency "rainbow"
27
+ spec.add_dependency "render_me_pretty"
28
+ spec.add_dependency "terraspace-bundler"
29
+ spec.add_dependency "thor"
30
+ spec.add_dependency "zeitwerk"
31
+
32
+ # baseline plugins
33
+ spec.add_dependency "terraspace_plugin_aws"
34
+ spec.add_dependency "terraspace_plugin_azurerm"
35
+ spec.add_dependency "terraspace_plugin_google"
36
+
37
+ spec.add_development_dependency "bundler"
38
+ spec.add_development_dependency "byebug"
39
+ spec.add_development_dependency "cli_markdown"
40
+ spec.add_development_dependency "rake"
41
+ spec.add_development_dependency "rspec"
26
42
  end
metadata CHANGED
@@ -1,39 +1,608 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: terraspace
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0
4
+ version: 0.1.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: 2020-05-07 00:00:00.000000000 Z
12
- dependencies: []
11
+ date: 2020-07-24 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: activesupport
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: cli-format
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'
41
+ - !ruby/object:Gem::Dependency
42
+ name: dsl_evaluator
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: hcl_parser
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: memoist
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rainbow
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: render_me_pretty
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :runtime
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: terraspace-bundler
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:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: thor
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :runtime
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: zeitwerk
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ type: :runtime
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
153
+ - !ruby/object:Gem::Dependency
154
+ name: terraspace_plugin_aws
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - ">="
158
+ - !ruby/object:Gem::Version
159
+ version: '0'
160
+ type: :runtime
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - ">="
165
+ - !ruby/object:Gem::Version
166
+ version: '0'
167
+ - !ruby/object:Gem::Dependency
168
+ name: terraspace_plugin_azurerm
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'
181
+ - !ruby/object:Gem::Dependency
182
+ name: terraspace_plugin_google
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - ">="
186
+ - !ruby/object:Gem::Version
187
+ version: '0'
188
+ type: :runtime
189
+ prerelease: false
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - ">="
193
+ - !ruby/object:Gem::Version
194
+ version: '0'
195
+ - !ruby/object:Gem::Dependency
196
+ name: bundler
197
+ requirement: !ruby/object:Gem::Requirement
198
+ requirements:
199
+ - - ">="
200
+ - !ruby/object:Gem::Version
201
+ version: '0'
202
+ type: :development
203
+ prerelease: false
204
+ version_requirements: !ruby/object:Gem::Requirement
205
+ requirements:
206
+ - - ">="
207
+ - !ruby/object:Gem::Version
208
+ version: '0'
209
+ - !ruby/object:Gem::Dependency
210
+ name: byebug
211
+ requirement: !ruby/object:Gem::Requirement
212
+ requirements:
213
+ - - ">="
214
+ - !ruby/object:Gem::Version
215
+ version: '0'
216
+ type: :development
217
+ prerelease: false
218
+ version_requirements: !ruby/object:Gem::Requirement
219
+ requirements:
220
+ - - ">="
221
+ - !ruby/object:Gem::Version
222
+ version: '0'
223
+ - !ruby/object:Gem::Dependency
224
+ name: cli_markdown
225
+ requirement: !ruby/object:Gem::Requirement
226
+ requirements:
227
+ - - ">="
228
+ - !ruby/object:Gem::Version
229
+ version: '0'
230
+ type: :development
231
+ prerelease: false
232
+ version_requirements: !ruby/object:Gem::Requirement
233
+ requirements:
234
+ - - ">="
235
+ - !ruby/object:Gem::Version
236
+ version: '0'
237
+ - !ruby/object:Gem::Dependency
238
+ name: rake
239
+ requirement: !ruby/object:Gem::Requirement
240
+ requirements:
241
+ - - ">="
242
+ - !ruby/object:Gem::Version
243
+ version: '0'
244
+ type: :development
245
+ prerelease: false
246
+ version_requirements: !ruby/object:Gem::Requirement
247
+ requirements:
248
+ - - ">="
249
+ - !ruby/object:Gem::Version
250
+ version: '0'
251
+ - !ruby/object:Gem::Dependency
252
+ name: rspec
253
+ requirement: !ruby/object:Gem::Requirement
254
+ requirements:
255
+ - - ">="
256
+ - !ruby/object:Gem::Version
257
+ version: '0'
258
+ type: :development
259
+ prerelease: false
260
+ version_requirements: !ruby/object:Gem::Requirement
261
+ requirements:
262
+ - - ">="
263
+ - !ruby/object:Gem::Version
264
+ version: '0'
13
265
  description:
14
266
  email:
15
- - tongueroo@gmail.com
16
- executables: []
267
+ - tung@boltops.com
268
+ executables:
269
+ - terraspace
17
270
  extensions: []
18
271
  extra_rdoc_files: []
19
272
  files:
273
+ - ".cody/README.md"
274
+ - ".cody/aws/bin/build.sh"
275
+ - ".cody/aws/buildspec.yml"
276
+ - ".cody/aws/project.rb"
277
+ - ".cody/aws/role.rb"
278
+ - ".cody/azurerm/bin/az/configure.sh"
279
+ - ".cody/azurerm/bin/az/install.sh"
280
+ - ".cody/azurerm/bin/build.sh"
281
+ - ".cody/azurerm/bin/install.sh"
282
+ - ".cody/azurerm/buildspec.yml"
283
+ - ".cody/azurerm/project.rb"
284
+ - ".cody/azurerm/role.rb"
285
+ - ".cody/google/bin/build.sh"
286
+ - ".cody/google/bin/gcloud/configure.sh"
287
+ - ".cody/google/bin/gcloud/install.sh"
288
+ - ".cody/google/bin/install.sh"
289
+ - ".cody/google/buildspec.yml"
290
+ - ".cody/google/project.rb"
291
+ - ".cody/google/role.rb"
292
+ - ".cody/shared/script/install.sh"
293
+ - ".cody/shared/script/install/terraform.sh"
294
+ - ".cody/shared/script/install/terraspace.sh"
295
+ - ".cody/unit/bin/build.sh"
296
+ - ".cody/unit/buildspec.yml"
297
+ - ".cody/unit/project.rb"
298
+ - ".github/ISSUE_TEMPLATE.md"
299
+ - ".github/ISSUE_TEMPLATE/bug_report.md"
300
+ - ".github/ISSUE_TEMPLATE/documentation.md"
301
+ - ".github/ISSUE_TEMPLATE/feature_request.md"
302
+ - ".github/ISSUE_TEMPLATE/question.md"
303
+ - ".github/PULL_REQUEST_TEMPLATE.md"
20
304
  - ".gitignore"
305
+ - ".pipedream/README.md"
306
+ - ".pipedream/pipeline.rb"
307
+ - ".pipedream/schedule.rb"
21
308
  - ".rspec"
22
- - ".travis.yml"
309
+ - CHANGELOG.md
310
+ - CONDUCT.md
311
+ - CONTRIBUTING.md
23
312
  - Gemfile
313
+ - Guardfile
24
314
  - LICENSE.txt
25
315
  - README.md
26
316
  - Rakefile
27
- - bin/console
28
- - bin/setup
317
+ - exe/terraspace
318
+ - lib/templates/base/project/.gitignore
319
+ - lib/templates/base/project/Gemfile.tt
320
+ - lib/templates/base/project/Terrafile
321
+ - lib/templates/base/project/config/app.rb
322
+ - lib/templates/hcl/module/main.tf
323
+ - lib/templates/hcl/module/outputs.tf
324
+ - lib/templates/hcl/module/variables.tf
325
+ - lib/templates/hcl/project/config/terraform/backend.tf.tt
326
+ - lib/templates/hcl/project/config/terraform/provider.tf
327
+ - lib/templates/hcl/stack/main.tf
328
+ - lib/templates/hcl/stack/outputs.tf
329
+ - lib/templates/hcl/stack/variables.tf
330
+ - lib/templates/plugin/.gitignore
331
+ - lib/templates/plugin/.rspec
332
+ - lib/templates/plugin/CHANGELOG.md
333
+ - lib/templates/plugin/Gemfile
334
+ - lib/templates/plugin/LICENSE.txt
335
+ - lib/templates/plugin/README.md.tt
336
+ - lib/templates/plugin/Rakefile
337
+ - lib/templates/plugin/bin/console.tt
338
+ - lib/templates/plugin/bin/setup
339
+ - lib/templates/plugin/lib/templates/hcl/module/main.tf
340
+ - lib/templates/plugin/lib/templates/hcl/module/outputs.tf
341
+ - lib/templates/plugin/lib/templates/hcl/module/variables.tf
342
+ - lib/templates/plugin/lib/templates/hcl/project/config/terraform/backend.tf.tt
343
+ - lib/templates/plugin/lib/templates/hcl/project/config/terraform/provider.tf
344
+ - lib/templates/plugin/lib/templates/hcl/stack/main.tf
345
+ - lib/templates/plugin/lib/templates/hcl/stack/outputs.tf
346
+ - lib/templates/plugin/lib/templates/hcl/stack/variables.tf
347
+ - lib/templates/plugin/lib/templates/ruby/module/main.rb
348
+ - lib/templates/plugin/lib/templates/ruby/module/outputs.rb
349
+ - lib/templates/plugin/lib/templates/ruby/module/variables.rb
350
+ - lib/templates/plugin/lib/templates/ruby/project/config/terraform/backend.rb.tt
351
+ - lib/templates/plugin/lib/templates/ruby/project/config/terraform/provider.rb
352
+ - lib/templates/plugin/lib/templates/ruby/stack/main.rb
353
+ - lib/templates/plugin/lib/templates/ruby/stack/outputs.rb
354
+ - lib/templates/plugin/lib/templates/ruby/stack/variables.rb
355
+ - lib/templates/plugin/lib/templates/test/rspec/module/test/.rspec
356
+ - lib/templates/plugin/lib/templates/test/rspec/module/test/Gemfile
357
+ - lib/templates/plugin/lib/templates/test/rspec/module/test/spec/fixtures/stack/main.tf
358
+ - lib/templates/plugin/lib/templates/test/rspec/module/test/spec/fixtures/stack/outputs.tf
359
+ - lib/templates/plugin/lib/templates/test/rspec/module/test/spec/fixtures/stack/variables.tf
360
+ - lib/templates/plugin/lib/templates/test/rspec/module/test/spec/main_spec.rb
361
+ - lib/templates/plugin/lib/templates/test/rspec/module/test/spec/spec_helper.rb
362
+ - lib/templates/plugin/lib/terraspace_plugin_%name%.rb.tt
363
+ - lib/templates/plugin/lib/terraspace_plugin_%name%/autoloader.rb.tt
364
+ - lib/templates/plugin/lib/terraspace_plugin_%name%/clients.rb.tt
365
+ - lib/templates/plugin/lib/terraspace_plugin_%name%/interfaces/backend.rb.tt
366
+ - lib/templates/plugin/lib/terraspace_plugin_%name%/interfaces/config.rb.tt
367
+ - lib/templates/plugin/lib/terraspace_plugin_%name%/interfaces/expander.rb.tt
368
+ - lib/templates/plugin/lib/terraspace_plugin_%name%/interfaces/layer.rb.tt
369
+ - lib/templates/plugin/lib/terraspace_plugin_%name%/version.rb.tt
370
+ - lib/templates/plugin/spec/spec_helper.rb.tt
371
+ - lib/templates/plugin/spec/terraspace_provider_%name%_spec.rb.tt
372
+ - lib/templates/plugin/terraspace_plugin_%name%.gemspec.tt
373
+ - lib/templates/ruby/module/main.rb
374
+ - lib/templates/ruby/module/outputs.rb
375
+ - lib/templates/ruby/module/variables.rb
376
+ - lib/templates/ruby/project/config/terraform/backend.rb.tt
377
+ - lib/templates/ruby/project/config/terraform/provider.rb
378
+ - lib/templates/ruby/stack/main.rb
379
+ - lib/templates/ruby/stack/outputs.rb
380
+ - lib/templates/ruby/stack/variables.rb
29
381
  - lib/terraspace.rb
382
+ - lib/terraspace/app.rb
383
+ - lib/terraspace/app/hooks.rb
384
+ - lib/terraspace/autoloader.rb
385
+ - lib/terraspace/booter.rb
386
+ - lib/terraspace/builder.rb
387
+ - lib/terraspace/bundle.rb
388
+ - lib/terraspace/cli.rb
389
+ - lib/terraspace/cli/base.rb
390
+ - lib/terraspace/cli/build.rb
391
+ - lib/terraspace/cli/bundle.rb
392
+ - lib/terraspace/cli/check_setup.rb
393
+ - lib/terraspace/cli/clean.rb
394
+ - lib/terraspace/cli/commander.rb
395
+ - lib/terraspace/cli/help.rb
396
+ - lib/terraspace/cli/help/bundle.md
397
+ - lib/terraspace/cli/help/completion.md
398
+ - lib/terraspace/cli/help/completion_script.md
399
+ - lib/terraspace/cli/help/update.md
400
+ - lib/terraspace/cli/info.rb
401
+ - lib/terraspace/cli/new.rb
402
+ - lib/terraspace/cli/new/helper.rb
403
+ - lib/terraspace/cli/new/helper/plugin_gem.rb
404
+ - lib/terraspace/cli/new/module.rb
405
+ - lib/terraspace/cli/new/plugin.rb
406
+ - lib/terraspace/cli/new/plugin/helper.rb
407
+ - lib/terraspace/cli/new/project.rb
408
+ - lib/terraspace/cli/new/sequence.rb
409
+ - lib/terraspace/cli/new/source/core.rb
410
+ - lib/terraspace/cli/new/source/plugin.rb
411
+ - lib/terraspace/cli/new/source/test.rb
412
+ - lib/terraspace/cli/new/stack.rb
413
+ - lib/terraspace/cli/new/test/base.rb
414
+ - lib/terraspace/cli/new/test/bootstrap.rb
415
+ - lib/terraspace/cli/new/test/module.rb
416
+ - lib/terraspace/cli/new/test/project.rb
417
+ - lib/terraspace/cli/seed.rb
418
+ - lib/terraspace/cli/summary.rb
419
+ - lib/terraspace/cli/test.rb
420
+ - lib/terraspace/command.rb
421
+ - lib/terraspace/compiler/backend.rb
422
+ - lib/terraspace/compiler/basename.rb
423
+ - lib/terraspace/compiler/builder.rb
424
+ - lib/terraspace/compiler/cleaner.rb
425
+ - lib/terraspace/compiler/cleaner/backend_change.rb
426
+ - lib/terraspace/compiler/dsl/base.rb
427
+ - lib/terraspace/compiler/dsl/meta/local.rb
428
+ - lib/terraspace/compiler/dsl/meta/var.rb
429
+ - lib/terraspace/compiler/dsl/mod.rb
430
+ - lib/terraspace/compiler/dsl/syntax/helpers/common.rb
431
+ - lib/terraspace/compiler/dsl/syntax/mod.rb
432
+ - lib/terraspace/compiler/dsl/syntax/mod/backend.rb
433
+ - lib/terraspace/compiler/dsl/syntax/mod/data.rb
434
+ - lib/terraspace/compiler/dsl/syntax/mod/locals.rb
435
+ - lib/terraspace/compiler/dsl/syntax/mod/module.rb
436
+ - lib/terraspace/compiler/dsl/syntax/mod/output.rb
437
+ - lib/terraspace/compiler/dsl/syntax/mod/provider.rb
438
+ - lib/terraspace/compiler/dsl/syntax/mod/resource.rb
439
+ - lib/terraspace/compiler/dsl/syntax/mod/terraform.rb
440
+ - lib/terraspace/compiler/dsl/syntax/mod/variable.rb
441
+ - lib/terraspace/compiler/dsl/syntax/tfvar.rb
442
+ - lib/terraspace/compiler/dsl/syntax/tfvar/common.rb
443
+ - lib/terraspace/compiler/dsl/tfvars.rb
444
+ - lib/terraspace/compiler/erb/context.rb
445
+ - lib/terraspace/compiler/erb/render.rb
446
+ - lib/terraspace/compiler/expander.rb
447
+ - lib/terraspace/compiler/strategy/abstract_base.rb
448
+ - lib/terraspace/compiler/strategy/mod.rb
449
+ - lib/terraspace/compiler/strategy/mod/base.rb
450
+ - lib/terraspace/compiler/strategy/mod/pass.rb
451
+ - lib/terraspace/compiler/strategy/mod/rb.rb
452
+ - lib/terraspace/compiler/strategy/mod/tf.rb
453
+ - lib/terraspace/compiler/strategy/tfvar.rb
454
+ - lib/terraspace/compiler/strategy/tfvar/base.rb
455
+ - lib/terraspace/compiler/strategy/tfvar/layer.rb
456
+ - lib/terraspace/compiler/strategy/tfvar/rb.rb
457
+ - lib/terraspace/compiler/strategy/tfvar/tfvars.rb
458
+ - lib/terraspace/compiler/writer.rb
459
+ - lib/terraspace/completer.rb
460
+ - lib/terraspace/completer/script.rb
461
+ - lib/terraspace/completer/script.sh
462
+ - lib/terraspace/core.rb
463
+ - lib/terraspace/ext.rb
464
+ - lib/terraspace/ext/bundler.rb
465
+ - lib/terraspace/ext/core/module.rb
466
+ - lib/terraspace/logger.rb
467
+ - lib/terraspace/mod.rb
468
+ - lib/terraspace/mod/remote.rb
469
+ - lib/terraspace/plugin.rb
470
+ - lib/terraspace/plugin/backend/interface.rb
471
+ - lib/terraspace/plugin/config/interface.rb
472
+ - lib/terraspace/plugin/decorator/interface.rb
473
+ - lib/terraspace/plugin/expander/generic.rb
474
+ - lib/terraspace/plugin/expander/interface.rb
475
+ - lib/terraspace/plugin/finder.rb
476
+ - lib/terraspace/plugin/meta.rb
477
+ - lib/terraspace/plugin/summary/interface.rb
478
+ - lib/terraspace/seeder.rb
479
+ - lib/terraspace/seeder/actions.rb
480
+ - lib/terraspace/seeder/content.rb
481
+ - lib/terraspace/seeder/where.rb
482
+ - lib/terraspace/terraform/args/custom.rb
483
+ - lib/terraspace/terraform/args/default.rb
484
+ - lib/terraspace/terraform/args/dsl.rb
485
+ - lib/terraspace/terraform/args/shorthands.rb
486
+ - lib/terraspace/terraform/hooks/builder.rb
487
+ - lib/terraspace/terraform/hooks/dsl.rb
488
+ - lib/terraspace/terraform/runner.rb
489
+ - lib/terraspace/tester.rb
490
+ - lib/terraspace/tester/finder.rb
491
+ - lib/terraspace/tester/meta.rb
492
+ - lib/terraspace/util.rb
493
+ - lib/terraspace/util/logging.rb
494
+ - lib/terraspace/util/sh.rb
495
+ - lib/terraspace/util/sure.rb
30
496
  - lib/terraspace/version.rb
497
+ - spec/cli_spec.rb
498
+ - spec/fixtures/cache_build_dir/variables.tf
499
+ - spec/fixtures/initialized/modules.json
500
+ - spec/fixtures/orphans/config/backend.rb
501
+ - spec/fixtures/orphans/config/provider.rb
502
+ - spec/fixtures/orphans/config/providers_different.rb
503
+ - spec/fixtures/orphans/config/providers_same.rb
504
+ - spec/fixtures/orphans/data/aws_ami.rb
505
+ - spec/fixtures/orphans/data/aws_instance.rb
506
+ - spec/fixtures/orphans/locals/forum.rb
507
+ - spec/fixtures/orphans/locals/qux.rb
508
+ - spec/fixtures/orphans/module/core/main.rb
509
+ - spec/fixtures/orphans/resource/security_group/hash_example.rb
510
+ - spec/fixtures/orphans/resource/vpc/count_example.rb
511
+ - spec/fixtures/orphans/terraform/terraform.rb
512
+ - spec/fixtures/projects/hcl/aws/app/modules/instance/main.tf
513
+ - spec/fixtures/projects/hcl/aws/app/modules/instance/variables.tf
514
+ - spec/fixtures/projects/hcl/aws/app/modules/vpc/file.txt
515
+ - spec/fixtures/projects/hcl/aws/app/modules/vpc/main.tf
516
+ - spec/fixtures/projects/hcl/aws/app/modules/vpc/variables.tf
517
+ - spec/fixtures/projects/hcl/aws/app/stacks/core/main.tf
518
+ - spec/fixtures/projects/hcl/aws/app/stacks/monolith/main.tf
519
+ - spec/fixtures/projects/hcl/aws/config/backend.tf
520
+ - spec/fixtures/projects/hcl/aws/config/provider.tf
521
+ - spec/fixtures/projects/hcl/google/app/modules/vpc/main.tf
522
+ - spec/fixtures/projects/hcl/google/app/modules/vpc/outputs.tf
523
+ - spec/fixtures/projects/hcl/google/app/modules/vpc/variables.tf
524
+ - spec/fixtures/projects/hcl/google/config/backend.tf
525
+ - spec/fixtures/projects/hcl/google/config/provider.tf
526
+ - spec/fixtures/projects/ruby/aws/app/modules/existing_backend/backend.rb
527
+ - spec/fixtures/projects/ruby/aws/app/modules/existing_backend/main.rb
528
+ - spec/fixtures/projects/ruby/aws/app/modules/existing_backend/outputs.rb
529
+ - spec/fixtures/projects/ruby/aws/app/modules/existing_backend/variables.rb
530
+ - spec/fixtures/projects/ruby/aws/app/modules/instance/main.rb
531
+ - spec/fixtures/projects/ruby/aws/app/modules/instance/outputs.rb
532
+ - spec/fixtures/projects/ruby/aws/app/modules/instance/variables.rb
533
+ - spec/fixtures/projects/ruby/aws/app/modules/security_group/main.rb
534
+ - spec/fixtures/projects/ruby/aws/app/modules/security_group/variables.rb
535
+ - spec/fixtures/projects/ruby/aws/app/modules/sg_child/main.rb
536
+ - spec/fixtures/projects/ruby/aws/app/modules/sg_child/variables.rb
537
+ - spec/fixtures/projects/ruby/aws/app/modules/sg_parent/main.rb
538
+ - spec/fixtures/projects/ruby/aws/app/modules/sg_parent/variables.rb
539
+ - spec/fixtures/projects/ruby/aws/app/modules/vpc/main.rb
540
+ - spec/fixtures/projects/ruby/aws/app/modules/vpc/outputs.rb
541
+ - spec/fixtures/projects/ruby/aws/app/modules/vpc/variables.rb
542
+ - spec/fixtures/projects/ruby/aws/app/modules/wordpress/main.rb
543
+ - spec/fixtures/projects/ruby/aws/app/stacks/core/a.tfvars
544
+ - spec/fixtures/projects/ruby/aws/app/stacks/core/b.tfvars
545
+ - spec/fixtures/projects/ruby/aws/app/stacks/core/main.rb
546
+ - spec/fixtures/projects/ruby/aws/app/stacks/core/outputs.rb
547
+ - spec/fixtures/projects/ruby/aws/app/stacks/core/variables.rb
548
+ - spec/fixtures/projects/ruby/aws/app/stacks/gke/main.rb
549
+ - spec/fixtures/projects/ruby/aws/app/stacks/monolith/main.rb
550
+ - spec/fixtures/projects/ruby/aws/app/stacks/nested/main.rb
551
+ - spec/fixtures/projects/ruby/aws/config/backend.rb
552
+ - spec/fixtures/projects/ruby/aws/config/cli/args.rb
553
+ - spec/fixtures/projects/ruby/aws/config/cli/hooks.rb
554
+ - spec/fixtures/projects/ruby/aws/config/provider.rb
555
+ - spec/fixtures/projects/ruby/aws/seed/tfvars/modules/instance/base.rb
556
+ - spec/fixtures/projects/ruby/aws/seed/tfvars/modules/instance/dev.rb
557
+ - spec/fixtures/projects/ruby/aws/seed/tfvars/modules/instance/prod.rb
558
+ - spec/fixtures/projects/ruby/aws/seed/tfvars/modules/security_group/base.rb
559
+ - spec/fixtures/projects/ruby/aws/seed/tfvars/modules/security_group/dev.rb
560
+ - spec/fixtures/projects/ruby/aws/seed/tfvars/modules/vpc/base.tfvars
561
+ - spec/fixtures/projects/ruby/aws/seed/tfvars/modules/vpc/dev.tfvars
562
+ - spec/fixtures/projects/ruby/aws/seed/tfvars/modules/vpc/prod.tfvars
563
+ - spec/fixtures/projects/ruby/aws/seed/tfvars/stacks/core/base.rb
564
+ - spec/fixtures/projects/ruby/aws/seed/tfvars/stacks/core/dev.rb
565
+ - spec/fixtures/projects/ruby/aws/seed/tfvars/stacks/core/prod.rb
566
+ - spec/fixtures/projects/ruby/aws/vendor/modules/vpc/main.rb
567
+ - spec/fixtures/projects/ruby/aws/vendor/modules/vpc/outputs.rb
568
+ - spec/fixtures/projects/ruby/aws/vendor/modules/vpc/variables.rb
569
+ - spec/fixtures/projects/ruby/google/app/modules/firewall/main.rb
570
+ - spec/fixtures/projects/ruby/google/app/modules/network/main.rb
571
+ - spec/fixtures/projects/ruby/google/app/modules/vm-simple/main.rb
572
+ - spec/fixtures/projects/ruby/google/app/modules/vm/main.rb
573
+ - spec/fixtures/projects/ruby/google/app/modules/vm/outputs.rb
574
+ - spec/fixtures/projects/ruby/google/app/modules/vm/variables.rb
575
+ - spec/fixtures/projects/ruby/google/app/stacks/core/main.rb
576
+ - spec/fixtures/projects/ruby/google/config/backend.rb
577
+ - spec/fixtures/projects/ruby/google/config/provider.rb
578
+ - spec/fixtures/terraform/args/multiple.rb
579
+ - spec/fixtures/terraform/args/single.rb
580
+ - spec/fixtures/terraform/hooks/multiple.rb
581
+ - spec/fixtures/terraform/hooks/single.rb
582
+ - spec/spec_helper.rb
583
+ - spec/terraspace/compiler/dsl/backend_spec.rb
584
+ - spec/terraspace/compiler/dsl/data_spec.rb
585
+ - spec/terraspace/compiler/dsl/locals_spec.rb
586
+ - spec/terraspace/compiler/dsl/meta/local_spec.rb
587
+ - spec/terraspace/compiler/dsl/meta/var_spec.rb
588
+ - spec/terraspace/compiler/dsl/module_spec.rb
589
+ - spec/terraspace/compiler/dsl/monolith_spec.rb
590
+ - spec/terraspace/compiler/dsl/output_spec.rb
591
+ - spec/terraspace/compiler/dsl/provider_spec.rb
592
+ - spec/terraspace/compiler/dsl/resource/security_group_spec.rb
593
+ - spec/terraspace/compiler/dsl/resource_spec.rb
594
+ - spec/terraspace/compiler/dsl/terraform_spec.rb
595
+ - spec/terraspace/compiler/dsl/variable_spec.rb
596
+ - spec/terraspace/provider/expander/generic_spec.rb
597
+ - spec/terraspace/seeder/content_spec.rb
598
+ - spec/terraspace/seeder_spec.rb
599
+ - spec/terraspace/terraform/args/custom_spec.rb
600
+ - spec/terraspace/terraform/hooks/builder_spec.rb
31
601
  - terraspace.gemspec
32
602
  homepage: https://github.com/boltops-tools/terraspace
33
603
  licenses:
34
- - MIT
35
- metadata:
36
- homepage_uri: https://github.com/boltops-tools/terraspace
604
+ - Apache-2.0
605
+ metadata: {}
37
606
  post_install_message:
38
607
  rdoc_options: []
39
608
  require_paths:
@@ -42,7 +611,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
42
611
  requirements:
43
612
  - - ">="
44
613
  - !ruby/object:Gem::Version
45
- version: 2.3.0
614
+ version: '0'
46
615
  required_rubygems_version: !ruby/object:Gem::Requirement
47
616
  requirements:
48
617
  - - ">="
@@ -52,5 +621,109 @@ requirements: []
52
621
  rubygems_version: 3.1.2
53
622
  signing_key:
54
623
  specification_version: 4
55
- summary: Terraform Tool
56
- test_files: []
624
+ summary: 'Terraspace: The Terraspace Framework'
625
+ test_files:
626
+ - spec/cli_spec.rb
627
+ - spec/fixtures/cache_build_dir/variables.tf
628
+ - spec/fixtures/initialized/modules.json
629
+ - spec/fixtures/orphans/config/backend.rb
630
+ - spec/fixtures/orphans/config/provider.rb
631
+ - spec/fixtures/orphans/config/providers_different.rb
632
+ - spec/fixtures/orphans/config/providers_same.rb
633
+ - spec/fixtures/orphans/data/aws_ami.rb
634
+ - spec/fixtures/orphans/data/aws_instance.rb
635
+ - spec/fixtures/orphans/locals/forum.rb
636
+ - spec/fixtures/orphans/locals/qux.rb
637
+ - spec/fixtures/orphans/module/core/main.rb
638
+ - spec/fixtures/orphans/resource/security_group/hash_example.rb
639
+ - spec/fixtures/orphans/resource/vpc/count_example.rb
640
+ - spec/fixtures/orphans/terraform/terraform.rb
641
+ - spec/fixtures/projects/hcl/aws/app/modules/instance/main.tf
642
+ - spec/fixtures/projects/hcl/aws/app/modules/instance/variables.tf
643
+ - spec/fixtures/projects/hcl/aws/app/modules/vpc/file.txt
644
+ - spec/fixtures/projects/hcl/aws/app/modules/vpc/main.tf
645
+ - spec/fixtures/projects/hcl/aws/app/modules/vpc/variables.tf
646
+ - spec/fixtures/projects/hcl/aws/app/stacks/core/main.tf
647
+ - spec/fixtures/projects/hcl/aws/app/stacks/monolith/main.tf
648
+ - spec/fixtures/projects/hcl/aws/config/backend.tf
649
+ - spec/fixtures/projects/hcl/aws/config/provider.tf
650
+ - spec/fixtures/projects/hcl/google/app/modules/vpc/main.tf
651
+ - spec/fixtures/projects/hcl/google/app/modules/vpc/outputs.tf
652
+ - spec/fixtures/projects/hcl/google/app/modules/vpc/variables.tf
653
+ - spec/fixtures/projects/hcl/google/config/backend.tf
654
+ - spec/fixtures/projects/hcl/google/config/provider.tf
655
+ - spec/fixtures/projects/ruby/aws/app/modules/existing_backend/backend.rb
656
+ - spec/fixtures/projects/ruby/aws/app/modules/existing_backend/main.rb
657
+ - spec/fixtures/projects/ruby/aws/app/modules/existing_backend/outputs.rb
658
+ - spec/fixtures/projects/ruby/aws/app/modules/existing_backend/variables.rb
659
+ - spec/fixtures/projects/ruby/aws/app/modules/instance/main.rb
660
+ - spec/fixtures/projects/ruby/aws/app/modules/instance/outputs.rb
661
+ - spec/fixtures/projects/ruby/aws/app/modules/instance/variables.rb
662
+ - spec/fixtures/projects/ruby/aws/app/modules/security_group/main.rb
663
+ - spec/fixtures/projects/ruby/aws/app/modules/security_group/variables.rb
664
+ - spec/fixtures/projects/ruby/aws/app/modules/sg_child/main.rb
665
+ - spec/fixtures/projects/ruby/aws/app/modules/sg_child/variables.rb
666
+ - spec/fixtures/projects/ruby/aws/app/modules/sg_parent/main.rb
667
+ - spec/fixtures/projects/ruby/aws/app/modules/sg_parent/variables.rb
668
+ - spec/fixtures/projects/ruby/aws/app/modules/vpc/main.rb
669
+ - spec/fixtures/projects/ruby/aws/app/modules/vpc/outputs.rb
670
+ - spec/fixtures/projects/ruby/aws/app/modules/vpc/variables.rb
671
+ - spec/fixtures/projects/ruby/aws/app/modules/wordpress/main.rb
672
+ - spec/fixtures/projects/ruby/aws/app/stacks/core/a.tfvars
673
+ - spec/fixtures/projects/ruby/aws/app/stacks/core/b.tfvars
674
+ - spec/fixtures/projects/ruby/aws/app/stacks/core/main.rb
675
+ - spec/fixtures/projects/ruby/aws/app/stacks/core/outputs.rb
676
+ - spec/fixtures/projects/ruby/aws/app/stacks/core/variables.rb
677
+ - spec/fixtures/projects/ruby/aws/app/stacks/gke/main.rb
678
+ - spec/fixtures/projects/ruby/aws/app/stacks/monolith/main.rb
679
+ - spec/fixtures/projects/ruby/aws/app/stacks/nested/main.rb
680
+ - spec/fixtures/projects/ruby/aws/config/backend.rb
681
+ - spec/fixtures/projects/ruby/aws/config/cli/args.rb
682
+ - spec/fixtures/projects/ruby/aws/config/cli/hooks.rb
683
+ - spec/fixtures/projects/ruby/aws/config/provider.rb
684
+ - spec/fixtures/projects/ruby/aws/seed/tfvars/modules/instance/base.rb
685
+ - spec/fixtures/projects/ruby/aws/seed/tfvars/modules/instance/dev.rb
686
+ - spec/fixtures/projects/ruby/aws/seed/tfvars/modules/instance/prod.rb
687
+ - spec/fixtures/projects/ruby/aws/seed/tfvars/modules/security_group/base.rb
688
+ - spec/fixtures/projects/ruby/aws/seed/tfvars/modules/security_group/dev.rb
689
+ - spec/fixtures/projects/ruby/aws/seed/tfvars/modules/vpc/base.tfvars
690
+ - spec/fixtures/projects/ruby/aws/seed/tfvars/modules/vpc/dev.tfvars
691
+ - spec/fixtures/projects/ruby/aws/seed/tfvars/modules/vpc/prod.tfvars
692
+ - spec/fixtures/projects/ruby/aws/seed/tfvars/stacks/core/base.rb
693
+ - spec/fixtures/projects/ruby/aws/seed/tfvars/stacks/core/dev.rb
694
+ - spec/fixtures/projects/ruby/aws/seed/tfvars/stacks/core/prod.rb
695
+ - spec/fixtures/projects/ruby/aws/vendor/modules/vpc/main.rb
696
+ - spec/fixtures/projects/ruby/aws/vendor/modules/vpc/outputs.rb
697
+ - spec/fixtures/projects/ruby/aws/vendor/modules/vpc/variables.rb
698
+ - spec/fixtures/projects/ruby/google/app/modules/firewall/main.rb
699
+ - spec/fixtures/projects/ruby/google/app/modules/network/main.rb
700
+ - spec/fixtures/projects/ruby/google/app/modules/vm-simple/main.rb
701
+ - spec/fixtures/projects/ruby/google/app/modules/vm/main.rb
702
+ - spec/fixtures/projects/ruby/google/app/modules/vm/outputs.rb
703
+ - spec/fixtures/projects/ruby/google/app/modules/vm/variables.rb
704
+ - spec/fixtures/projects/ruby/google/app/stacks/core/main.rb
705
+ - spec/fixtures/projects/ruby/google/config/backend.rb
706
+ - spec/fixtures/projects/ruby/google/config/provider.rb
707
+ - spec/fixtures/terraform/args/multiple.rb
708
+ - spec/fixtures/terraform/args/single.rb
709
+ - spec/fixtures/terraform/hooks/multiple.rb
710
+ - spec/fixtures/terraform/hooks/single.rb
711
+ - spec/spec_helper.rb
712
+ - spec/terraspace/compiler/dsl/backend_spec.rb
713
+ - spec/terraspace/compiler/dsl/data_spec.rb
714
+ - spec/terraspace/compiler/dsl/locals_spec.rb
715
+ - spec/terraspace/compiler/dsl/meta/local_spec.rb
716
+ - spec/terraspace/compiler/dsl/meta/var_spec.rb
717
+ - spec/terraspace/compiler/dsl/module_spec.rb
718
+ - spec/terraspace/compiler/dsl/monolith_spec.rb
719
+ - spec/terraspace/compiler/dsl/output_spec.rb
720
+ - spec/terraspace/compiler/dsl/provider_spec.rb
721
+ - spec/terraspace/compiler/dsl/resource/security_group_spec.rb
722
+ - spec/terraspace/compiler/dsl/resource_spec.rb
723
+ - spec/terraspace/compiler/dsl/terraform_spec.rb
724
+ - spec/terraspace/compiler/dsl/variable_spec.rb
725
+ - spec/terraspace/provider/expander/generic_spec.rb
726
+ - spec/terraspace/seeder/content_spec.rb
727
+ - spec/terraspace/seeder_spec.rb
728
+ - spec/terraspace/terraform/args/custom_spec.rb
729
+ - spec/terraspace/terraform/hooks/builder_spec.rb