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-4.0.12 lib/jets/resource/base.rb
jets-4.0.11 lib/jets/resource/base.rb
jets-4.0.10 lib/jets/resource/base.rb
jets-4.0.9 lib/jets/resource/base.rb
jets-4.0.8 lib/jets/resource/base.rb
jets-4.0.7 lib/jets/resource/base.rb
jets-4.0.6 lib/jets/resource/base.rb
jets-4.0.5 lib/jets/resource/base.rb
jets-4.0.4 lib/jets/resource/base.rb
jets-4.0.3 lib/jets/resource/base.rb
jets-4.0.2 lib/jets/resource/base.rb
jets-4.0.1 lib/jets/resource/base.rb
jets-4.0.0 lib/jets/resource/base.rb
jets-3.2.2 lib/jets/resource/base.rb
jets-3.2.1 lib/jets/resource/base.rb
jets.benforeva-3.0.17.pre.mount.pre.fix lib/jets/resource/base.rb
jets-3.2.0 lib/jets/resource/base.rb
jets-3.1.5 lib/jets/resource/base.rb
jets-3.1.4 lib/jets/resource/base.rb
jets-3.1.3 lib/jets/resource/base.rb