class SparkleFormation::Resources::Google

Google specific resources collection

Constants

RESOURCE_TYPE_NAMESPACE_SPLITTER

String to split for resource namespacing

RESOURCE_TYPE_TR

Characters to be removed from supplied key on matching

Public Class Methods

included(_klass) click to toggle source

Auto load data when included

# File lib/sparkle_formation/resources/google.rb, line 40
def included(_klass)
  load!
end
load!() click to toggle source

Load the builtin AWS resources

@return [TrueClass]

# File lib/sparkle_formation/resources/google.rb, line 22
def load!
  memoize(:google_resources, :global) do
    load(
      File.join(
        File.dirname(__FILE__),
        "google_resources.json"
      )
    )
    # NOTE: Internal resource type used for nesting
    registry["sparkleformation.stack"] = {
      "properties" => [],
      "full_properties" => {},
    }
    true
  end
end