Sha256: 0a3672b8d887075145e96c91b764477468b316d262b8272ad2c947998c81d152

Contents?: true

Size: 730 Bytes

Versions: 217

Compression:

Stored size: 730 Bytes

Contents

# Classes that inherit from this method should NOT define and override:
#
#   logical_id
#   type
#   properties
#   attributes
#
# These are computed methods that derive their values from the resource definition itself.
# Overriding these methods will remove the computed logical which handles things
# like camelizing and replacements.
#
# The implementation of these methods are in `Jets::Resource`.
class Jets::Resource
  class Base
    extend Memoist
    delegate :logical_id, :type, :properties, :attributes, :parameters, :outputs,
             to: :resource

    def resource
      Jets::Resource.new(definition, replacements)
    end
    memoize :resource

    def replacements
      @replacements || {}
    end
  end
end

Version data entries

217 entries across 217 versions & 4 rubygems

Version Path
jets-2.1.1 lib/jets/resource/base.rb
jets-2.1.0 lib/jets/resource/base.rb
jets-2.0.6 lib/jets/resource/base.rb
jets-2.0.5 lib/jets/resource/base.rb
jets-2.0.4 lib/jets/resource/base.rb
jets-2.0.3 lib/jets/resource/base.rb
jets-2.0.1 lib/jets/resource/base.rb
jets-2.0.0 lib/jets/resource/base.rb
jets-1.9.32 lib/jets/resource/base.rb
jets-1.9.31 lib/jets/resource/base.rb
jets-1.9.30 lib/jets/resource/base.rb
jets-1.9.29 lib/jets/resource/base.rb
jets-1.9.28 lib/jets/resource/base.rb
jets-1.9.27 lib/jets/resource/base.rb
jets-1.9.26 lib/jets/resource/base.rb
jets-1.9.25 lib/jets/resource/base.rb
jets-1.9.24 lib/jets/resource/base.rb
jets-1.9.23 lib/jets/resource/base.rb
jets-1.9.22 lib/jets/resource/base.rb
jets-1.9.21 lib/jets/resource/base.rb