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-2.3.6 lib/jets/resource/child_stack/base.rb
jets-2.3.5 lib/jets/resource/child_stack/base.rb
jets-2.3.4 lib/jets/resource/child_stack/base.rb
jets-2.3.3 lib/jets/resource/child_stack/base.rb
jets-2.3.2 lib/jets/resource/child_stack/base.rb
jets-2.3.1 lib/jets/resource/child_stack/base.rb
jets-2.3.0 lib/jets/resource/child_stack/base.rb
jets-2.2.5 lib/jets/resource/child_stack/base.rb
jets-2.2.4 lib/jets/resource/child_stack/base.rb
jets-2.2.3 lib/jets/resource/child_stack/base.rb
jets-2.2.2 lib/jets/resource/child_stack/base.rb
jets-2.2.1 lib/jets/resource/child_stack/base.rb
jets-2.2.0 lib/jets/resource/child_stack/base.rb
jets-2.1.7 lib/jets/resource/child_stack/base.rb
jets-2.1.6 lib/jets/resource/child_stack/base.rb
jets-2.1.5 lib/jets/resource/child_stack/base.rb
jets-2.1.4 lib/jets/resource/child_stack/base.rb
jets-2.1.3 lib/jets/resource/child_stack/base.rb
jets-2.1.2 lib/jets/resource/child_stack/base.rb
jets_bb_fork-0.0.4 lib/jets/resource/child_stack/base.rb