Class: SparkleFormation::Resources::Heat

Inherits:
SparkleFormation::Resources show all
Extended by:
Bogo::Memoization
Defined in:
lib/sparkle_formation/resources/heat.rb

Overview

Heat specific resources collection

Constant Summary

Constants inherited from SparkleFormation::Resources

PROPERTY_UPDATE_CONDITIONALS, RESOURCE_TYPE_NAMESPACE_SPLITTER, RESOURCE_TYPE_TR

Class Method Summary collapse

Methods inherited from SparkleFormation::Resources

base_key, key_loader, load, lookup, register, registry, registry_key, resource, resource_customizer, resource_lookup, resource_type_splitter

Methods included from Utils::AnimalStrings

#camel, #snake

Class Method Details

.included(_klass) ⇒ Object

Auto load data when included



29
30
31
# File 'lib/sparkle_formation/resources/heat.rb', line 29

def included(_klass)
  load!
end

.load!TrueClass

Load the builtin AWS resources

Returns:

  • (TrueClass)


16
17
18
19
20
21
22
23
24
25
26
# File 'lib/sparkle_formation/resources/heat.rb', line 16

def load!
  memoize(:heat_resources, :global) do
    load(
      File.join(
        File.dirname(__FILE__),
        "heat_resources.json"
      )
    )
    true
  end
end