terraspace 0.1.2 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +21 -0
  3. data/lib/templates/base/git_hook/hook.sh +5 -0
  4. data/lib/templates/base/project/.gitignore +0 -1
  5. data/lib/templates/base/shim/terraspace +7 -0
  6. data/lib/templates/hcl/project/config/terraform/backend.tf.tt +3 -3
  7. data/lib/templates/plugin/lib/templates/hcl/project/config/terraform/backend.tf.tt +2 -2
  8. data/lib/terraspace/app.rb +6 -0
  9. data/lib/terraspace/builder.rb +2 -46
  10. data/lib/terraspace/cli.rb +34 -18
  11. data/lib/terraspace/cli/build/placeholder.rb +40 -0
  12. data/lib/terraspace/cli/cloud.rb +24 -0
  13. data/lib/terraspace/cli/commander.rb +8 -1
  14. data/lib/terraspace/cli/init.rb +67 -0
  15. data/lib/terraspace/cli/list.rb +13 -0
  16. data/lib/terraspace/cli/new.rb +8 -0
  17. data/lib/terraspace/cli/new/git_hook.rb +33 -0
  18. data/lib/terraspace/cli/new/shim.rb +58 -0
  19. data/lib/terraspace/cli/summary.rb +9 -12
  20. data/lib/terraspace/compiler/backend.rb +9 -37
  21. data/lib/terraspace/compiler/backend/parser.rb +42 -0
  22. data/lib/terraspace/compiler/builder.rb +6 -2
  23. data/lib/terraspace/compiler/cleaner.rb +19 -2
  24. data/lib/terraspace/compiler/cleaner/backend_change.rb +1 -1
  25. data/lib/terraspace/compiler/dsl/syntax/mod.rb +1 -0
  26. data/lib/terraspace/compiler/dsl/syntax/mod/backend.rb +16 -3
  27. data/lib/terraspace/compiler/expander.rb +28 -1
  28. data/lib/terraspace/compiler/writer.rb +1 -1
  29. data/lib/terraspace/core.rb +7 -1
  30. data/lib/terraspace/mod.rb +37 -12
  31. data/lib/terraspace/mod/remote.rb +1 -1
  32. data/lib/terraspace/plugin/expander/interface.rb +48 -5
  33. data/lib/terraspace/plugin/infer_provider.rb +15 -0
  34. data/lib/terraspace/plugin/layer/interface.rb +5 -0
  35. data/lib/terraspace/seeder.rb +4 -4
  36. data/lib/terraspace/terraform/api.rb +53 -0
  37. data/lib/terraspace/terraform/api/client.rb +10 -0
  38. data/lib/terraspace/terraform/api/http.rb +106 -0
  39. data/lib/terraspace/terraform/api/var.rb +72 -0
  40. data/lib/terraspace/terraform/api/vars.rb +38 -0
  41. data/lib/terraspace/terraform/api/vars/base.rb +7 -0
  42. data/lib/terraspace/terraform/api/vars/json.rb +14 -0
  43. data/lib/terraspace/terraform/api/vars/rb.rb +21 -0
  44. data/lib/terraspace/terraform/args/custom.rb +1 -1
  45. data/lib/terraspace/terraform/args/default.rb +16 -2
  46. data/lib/terraspace/terraform/cloud.rb +25 -0
  47. data/lib/terraspace/terraform/cloud/workspace.rb +95 -0
  48. data/lib/terraspace/terraform/runner.rb +1 -1
  49. data/lib/terraspace/util/sh.rb +1 -1
  50. data/lib/terraspace/version.rb +1 -1
  51. data/spec/fixtures/{cache_build_dir → cache_dir}/variables.tf +0 -0
  52. data/spec/fixtures/projects/hcl/aws/config/backend.tf +1 -1
  53. data/spec/fixtures/projects/hcl/google/config/backend.tf +1 -1
  54. data/spec/terraspace/seeder_spec.rb +1 -1
  55. data/spec/terraspace/terraform/hooks/builder_spec.rb +1 -1
  56. data/terraspace.gemspec +3 -3
  57. metadata +37 -17
  58. data/lib/terraspace/cli/build.rb +0 -7
@@ -1,7 +0,0 @@
1
- class Terraspace::CLI
2
- class Build < Base
3
- def run
4
- Terraspace::Builder.new(@options).run
5
- end
6
- end
7
- end