Class: Terraspace::Compiler::Dsl::Base

Inherits:
Object
  • Object
show all
Includes:
DslEvaluator
Defined in:
lib/terraspace/compiler/dsl/base.rb

Direct Known Subclasses

Mod, Tfvars

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(mod, src_path) ⇒ Base

Returns a new instance of Base.



6
7
8
9
10
# File 'lib/terraspace/compiler/dsl/base.rb', line 6

def initialize(mod, src_path)
  @mod, @src_path = mod, src_path
  @options = mod.options # so user has access to cli options
  @structure = {}
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



5
6
7
# File 'lib/terraspace/compiler/dsl/base.rb', line 5

def options
  @options
end

#structureObject (readonly)

Returns the value of attribute structure.



5
6
7
# File 'lib/terraspace/compiler/dsl/base.rb', line 5

def structure
  @structure
end