Module: Terraspace::Compiler::Dsl::Syntax::Mod::Data

Defined in:
lib/terraspace/compiler/dsl/syntax/mod/data.rb

Instance Method Summary collapse

Instance Method Details

#data(type, name, props = {}) ⇒ Object



3
4
5
6
7
# File 'lib/terraspace/compiler/dsl/syntax/mod/data.rb', line 3

def data(type, name, props={})
  resource = @structure[:data] ||= {}
  resource_type = resource[type] ||= {}
  resource_type[name] = props
end