Sha256: 252271b321215ef1eacce28248508bc3494bbbf441b6dcb7838c4685f3d9c948

Contents?: true

Size: 987 Bytes

Versions: 8

Compression:

Stored size: 987 Bytes

Contents

require 'sparkle_formation'

class SparkleFormation

  # Resources helper
  class Resources

    # Google specific resources collection
    class Google < Resources

      # String to split for resource namespacing
      RESOURCE_TYPE_NAMESPACE_SPLITTER = ['.']

      class << self

        include Bogo::Memoization

        # Load the builtin AWS resources
        #
        # @return [TrueClass]
        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

        # Auto load data when included
        def included(_klass)
          load!
        end

      end

    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
sparkle_formation-3.0.14 lib/sparkle_formation/resources/google.rb
sparkle_formation-3.0.12 lib/sparkle_formation/resources/google.rb
sparkle_formation-3.0.10 lib/sparkle_formation/resources/google.rb
sparkle_formation-3.0.8 lib/sparkle_formation/resources/google.rb
sparkle_formation-3.0.6 lib/sparkle_formation/resources/google.rb
sparkle_formation-3.0.4 lib/sparkle_formation/resources/google.rb
sparkle_formation-3.0.2 lib/sparkle_formation/resources/google.rb
sparkle_formation-3.0.0 lib/sparkle_formation/resources/google.rb