Class: Terraspace::Compiler::Dsl::Mod
Instance Attribute Summary
Attributes inherited from Base
#options, #structure
Instance Method Summary
collapse
#logger
Methods inherited from Base
#initialize
Instance Method Details
#build ⇒ Object
6
7
8
9
10
|
# File 'lib/terraspace/compiler/dsl/mod.rb', line 6
def build
extend_module_level_helpers
evaluate
build_content
end
|
#build_content ⇒ Object
16
17
18
19
|
# File 'lib/terraspace/compiler/dsl/mod.rb', line 16
def build_content
result = @structure.deep_stringify_keys
JSON.pretty_generate(result)
end
|
#evaluate ⇒ Object
12
13
14
|
# File 'lib/terraspace/compiler/dsl/mod.rb', line 12
def evaluate
evaluate_file(@src_path)
end
|