Class: Jets::Resource::ChildStack::Base

Inherits:
Base
  • Object
show all
Defined in:
lib/jets/resource/child_stack/base.rb

Instance Method Summary collapse

Methods inherited from Base

#replacements, #resource

Constructor Details

#initialize(s3_bucket, options = {}) ⇒ Base

Returns a new instance of Base.



8
9
10
11
# File 'lib/jets/resource/child_stack/base.rb', line 8

def initialize(s3_bucket, options={})
  @s3_bucket = s3_bucket
  @options = options
end

Instance Method Details

#outputsObject



13
14
15
16
17
# File 'lib/jets/resource/child_stack/base.rb', line 13

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

#template_urlObject



19
20
21
22
# File 'lib/jets/resource/child_stack/base.rb', line 19

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