terraspace 0.4.3 → 0.5.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (72) hide show
  1. checksums.yaml +4 -4
  2. data/.cody/aws/bin/build.sh +2 -2
  3. data/.cody/azurerm/bin/build.sh +2 -2
  4. data/.cody/google/bin/build.sh +2 -2
  5. data/.github/ISSUE_TEMPLATE.md +1 -1
  6. data/CHANGELOG.md +32 -0
  7. data/README.md +4 -3
  8. data/lib/templates/base/arg/terraform.rb.tt +3 -0
  9. data/lib/templates/base/helper/%name%_helper.rb.tt +2 -0
  10. data/lib/templates/base/hook/%kind%.rb.tt +7 -0
  11. data/lib/terraspace.rb +7 -4
  12. data/lib/terraspace/all/base.rb +0 -1
  13. data/lib/terraspace/app.rb +1 -0
  14. data/lib/terraspace/autoloader.rb +16 -1
  15. data/lib/terraspace/bundle.rb +6 -0
  16. data/lib/terraspace/cli/bundle.rb +0 -1
  17. data/lib/terraspace/cli/check_setup.rb +15 -2
  18. data/lib/terraspace/cli/clean/base.rb +0 -1
  19. data/lib/terraspace/cli/clean/cache.rb +0 -1
  20. data/lib/terraspace/cli/cloud.rb +2 -0
  21. data/lib/terraspace/cli/help/new/arg.md +19 -0
  22. data/lib/terraspace/cli/help/new/helper.md +39 -0
  23. data/lib/terraspace/cli/help/new/hook.md +25 -0
  24. data/lib/terraspace/cli/help/new/test.md +34 -0
  25. data/lib/terraspace/cli/new.rb +22 -16
  26. data/lib/terraspace/cli/new/arg.rb +62 -0
  27. data/lib/terraspace/cli/new/helper.rb +44 -12
  28. data/lib/terraspace/cli/new/helpers.rb +22 -0
  29. data/lib/terraspace/cli/new/helpers/plugin_gem.rb +25 -0
  30. data/lib/terraspace/cli/new/hook.rb +70 -0
  31. data/lib/terraspace/cli/new/module.rb +0 -11
  32. data/lib/terraspace/cli/new/plugin.rb +4 -4
  33. data/lib/terraspace/cli/new/plugin/helper.rb +1 -1
  34. data/lib/terraspace/cli/new/project.rb +16 -7
  35. data/lib/terraspace/cli/new/sequence.rb +3 -10
  36. data/lib/terraspace/cli/new/source/core.rb +1 -1
  37. data/lib/terraspace/cli/new/stack.rb +1 -12
  38. data/lib/terraspace/cli/new/test.rb +50 -0
  39. data/lib/terraspace/cli/summary.rb +0 -1
  40. data/lib/terraspace/command.rb +50 -0
  41. data/lib/terraspace/compiler/builder.rb +2 -0
  42. data/lib/terraspace/compiler/dsl/mod.rb +2 -0
  43. data/lib/terraspace/compiler/dsl/syntax/mod.rb +2 -0
  44. data/lib/terraspace/compiler/dsl/syntax/mod/backend.rb +1 -1
  45. data/lib/terraspace/compiler/erb/context.rb +2 -0
  46. data/lib/terraspace/compiler/helper_extender.rb +27 -0
  47. data/lib/terraspace/core.rb +0 -6
  48. data/lib/terraspace/ext/core/module.rb +16 -0
  49. data/lib/terraspace/hooks/builder.rb +6 -7
  50. data/lib/terraspace/hooks/concern.rb +2 -2
  51. data/lib/terraspace/logger.rb +6 -0
  52. data/lib/terraspace/mod.rb +0 -1
  53. data/lib/terraspace/plugin.rb +8 -4
  54. data/lib/terraspace/plugin/config/interface.rb +2 -2
  55. data/lib/terraspace/plugin/helper/interface.rb +31 -0
  56. data/lib/terraspace/shell.rb +5 -33
  57. data/lib/terraspace/shell/error.rb +46 -0
  58. data/lib/terraspace/terraform/args/custom.rb +2 -3
  59. data/lib/terraspace/terraform/runner.rb +5 -13
  60. data/lib/terraspace/terraform/runner/retryer.rb +69 -0
  61. data/lib/terraspace/version.rb +1 -1
  62. data/spec/terraspace/terraform/args/custom_spec.rb +6 -4
  63. data/terraspace.gemspec +4 -4
  64. metadata +29 -21
  65. data/lib/terraspace/cli/help/new/bootstrap_test.md +0 -8
  66. data/lib/terraspace/cli/help/new/module_test.md +0 -12
  67. data/lib/terraspace/cli/help/new/project_test.md +0 -8
  68. data/lib/terraspace/cli/new/helper/plugin_gem.rb +0 -12
  69. data/lib/terraspace/cli/new/test/base.rb +0 -17
  70. data/lib/terraspace/cli/new/test/bootstrap.rb +0 -18
  71. data/lib/terraspace/cli/new/test/module.rb +0 -15
  72. data/lib/terraspace/cli/new/test/project.rb +0 -15
@@ -1,15 +0,0 @@
1
- module Terraspace::CLI::New::Test
2
- class Project < Base
3
- argument :name
4
-
5
- def create
6
- return if @options[:test] == false
7
- test_template_source(@options[:lang], "project")
8
-
9
- puts "=> Creating project test: #{name}"
10
- dest = "."
11
- dest = "#{@options[:project_name]}/#{dest}" if @options[:project_name]
12
- directory ".", dest
13
- end
14
- end
15
- end