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

Class Method Summary collapse

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