Sha256: 3fa345d9247a473aba9881db1fc793bfc7a5aabc52c1fc7359a4e8556555c239

Contents?: true

Size: 682 Bytes

Versions: 8

Compression:

Stored size: 682 Bytes

Contents

require 'sparkle_formation'

class SparkleFormation

  # Resources helper
  class Resources

    # AWS specific resources collection
    class Aws < Resources

      class << self

        include Bogo::Memoization

        # Load the builtin AWS resources
        #
        # @return [TrueClass]
        def load!
          memoize(:aws_resources, :global) do
            load(
              File.join(
                File.dirname(__FILE__),
                'aws_resources.json'
              )
            )
            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-2.1.8 lib/sparkle_formation/resources/aws.rb
sparkle_formation-2.1.6 lib/sparkle_formation/resources/aws.rb
sparkle_formation-2.1.4 lib/sparkle_formation/resources/aws.rb
sparkle_formation-2.1.2 lib/sparkle_formation/resources/aws.rb
sparkle_formation-2.1.0 lib/sparkle_formation/resources/aws.rb
sparkle_formation-2.0.2 lib/sparkle_formation/resources/aws.rb
sparkle_formation-2.0.0 lib/sparkle_formation/resources/aws.rb
sparkle_formation-1.2.0 lib/sparkle_formation/resources/aws.rb