Class: Terraspace::Compiler::Builder
- Inherits:
-
Object
- Object
- Terraspace::Compiler::Builder
- Includes:
- Basename
- Defined in:
- lib/terraspace/compiler/builder.rb
Instance Method Summary collapse
- #build ⇒ Object
-
#build_config ⇒ Object
build common config files: provider and backend for the root module.
- #build_module ⇒ Object
- #build_tfvars ⇒ Object
-
#initialize(mod) ⇒ Builder
constructor
A new instance of Builder.
Methods included from Basename
Constructor Details
#initialize(mod) ⇒ Builder
Returns a new instance of Builder.
5 6 7 |
# File 'lib/terraspace/compiler/builder.rb', line 5 def initialize(mod) @mod = mod end |
Instance Method Details
#build ⇒ Object
9 10 11 12 13 |
# File 'lib/terraspace/compiler/builder.rb', line 9 def build build_config build_module build_tfvars end |
#build_config ⇒ Object
build common config files: provider and backend for the root module
16 17 18 19 |
# File 'lib/terraspace/compiler/builder.rb', line 16 def build_config return unless build? build_config_templates end |
#build_module ⇒ Object
21 22 23 24 25 |
# File 'lib/terraspace/compiler/builder.rb', line 21 def build_module with_mod_file do |src_path| build_mod_file(src_path) end end |