Class: SparkleFormation::Resources::Terraform
- Inherits:
-
SparkleFormation::Resources
- Object
- SparkleFormation::Resources
- SparkleFormation::Resources::Terraform
- Extended by:
- Bogo::Memoization
- Defined in:
- lib/sparkle_formation/resources/terraform.rb
Overview
Terraform specific resources collection
Constant Summary collapse
- RESOURCE_TYPE_NAMESPACE_SPLITTER =
String to split for resource namespacing
['_']
Constants inherited from SparkleFormation::Resources
PROPERTY_UPDATE_CONDITIONALS, RESOURCE_TYPE_TR
Class Method Summary collapse
-
.included(_klass) ⇒ Object
Auto load data when included.
-
.load! ⇒ TrueClass
Load the builtin Terraform resources.
Methods inherited from SparkleFormation::Resources
base_key, load, lookup, register, registry, registry_key, resource, resource_customizer, resource_lookup, resource_type_splitter
Methods included from Utils::AnimalStrings
Class Method Details
.included(_klass) ⇒ Object
Auto load data when included
39 40 41 |
# File 'lib/sparkle_formation/resources/terraform.rb', line 39 def included(_klass) load! end |
.load! ⇒ TrueClass
Load the builtin Terraform resources
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
# File 'lib/sparkle_formation/resources/terraform.rb', line 21 def load! memoize(:terraform_resources, :global) do load( File.join( File.dirname(__FILE__), 'terraform_resources.json' ) ) # NOTE: Internal resource type used for nesting register('module', 'properties' => [], 'full_properties' => {} ) true end end |