Sha256: 78bdb75ac5c5718e9bbf0b86a0814ac2df28a9549d7197053c3d85a0072cde17

Contents?: true

Size: 507 Bytes

Versions: 217

Compression:

Stored size: 507 Bytes

Contents

# Inheriting classes should implement:
#
#   definition
#   template_filename
#
module Jets::Resource::ChildStack
  class Base < Jets::Resource::Base
    def initialize(s3_bucket, options={})
      @s3_bucket = s3_bucket
      @options = options
    end

    def outputs
      {
        logical_id => "!Ref #{logical_id}",
      }
    end

    def template_url
      basename = File.basename(template_filename)
      "https://s3.amazonaws.com/#{@s3_bucket}/jets/cfn-templates/#{basename}"
    end
  end
end

Version data entries

217 entries across 217 versions & 4 rubygems

Version Path
jets-3.0.6 lib/jets/resource/child_stack/base.rb
jets-3.0.5 lib/jets/resource/child_stack/base.rb
jets-3.0.4 lib/jets/resource/child_stack/base.rb
jets-3.0.3 lib/jets/resource/child_stack/base.rb
jets-2.3.19 lib/jets/resource/child_stack/base.rb
jets-3.0.2 lib/jets/resource/child_stack/base.rb
jets-3.0.1 lib/jets/resource/child_stack/base.rb
jets-3.0.0 lib/jets/resource/child_stack/base.rb
jets-2.3.18 lib/jets/resource/child_stack/base.rb
jets-2.3.17 lib/jets/resource/child_stack/base.rb
jets-2.3.16 lib/jets/resource/child_stack/base.rb
jets-2.3.15 lib/jets/resource/child_stack/base.rb
jets-2.3.14 lib/jets/resource/child_stack/base.rb
jets-2.3.13 lib/jets/resource/child_stack/base.rb
jets-2.3.12 lib/jets/resource/child_stack/base.rb
jets-2.3.11 lib/jets/resource/child_stack/base.rb
jets-2.3.10 lib/jets/resource/child_stack/base.rb
jets-2.3.9 lib/jets/resource/child_stack/base.rb
jets-2.3.8 lib/jets/resource/child_stack/base.rb
jets-2.3.7 lib/jets/resource/child_stack/base.rb