Module: Pangea::Resources::ResourceBuilder

Defined in:
lib/pangea/resources/resource_builder.rb

Overview

Declarative DSL for defining terraform resource methods.

Types are PURE — they model the domain (CIDRs, ports, arrays). Terraform references are handled at the serialization boundary via ResourceInput, not in the type definitions.

Each attribute is classified as:

map:         always set on the resource block
map_present: set only when non-nil
map_bool:    set only when non-nil (explicit boolean check)
labels:      set when hash is non-empty (.any?)
tags:        set when hash is non-empty (.any?)

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



19
20
21
# File 'lib/pangea/resources/resource_builder.rb', line 19

def self.included(base)
  base.extend(ClassMethods)
end