Class: Jets::Resource::ChildStack::Base
- Defined in:
- lib/jets/resource/child_stack/base.rb
Direct Known Subclasses
ApiDeployment, ApiGateway, ApiResource, AppClass, Authorizer
Instance Method Summary collapse
-
#initialize(s3_bucket, options = {}) ⇒ Base
constructor
A new instance of Base.
- #outputs ⇒ Object
- #template_url ⇒ Object
Methods inherited from Base
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, ={}) @s3_bucket = s3_bucket @options = end |
Instance Method Details
#outputs ⇒ Object
13 14 15 16 17 |
# File 'lib/jets/resource/child_stack/base.rb', line 13 def outputs { logical_id => "!Ref #{logical_id}", } end |
#template_url ⇒ Object
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 |