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