Class: Jets::Cfn::Builders::SharedBuilder
- Inherits:
-
BaseChildBuilder
- Object
- BaseChildBuilder
- Jets::Cfn::Builders::SharedBuilder
- Defined in:
- lib/jets/cfn/builders/shared_builder.rb
Instance Method Summary collapse
- #compose ⇒ Object
-
#template_path ⇒ Object
template_path is an interface method for Interface module.
Methods inherited from BaseChildBuilder
#add_class_iam_policy, #add_common_parameters, #add_function, #add_function_iam_policy, #add_functions, #depends_on_params, #initialize
Methods included from Interface
#add_description, #add_output, #add_outputs, #add_parameter, #add_parameters, #add_resource, #add_resources, #add_template_resource, #build, #post_process_template, #template, #text, #write
Constructor Details
This class inherits a constructor from Jets::Cfn::Builders::BaseChildBuilder
Instance Method Details
#compose ⇒ Object
3 4 5 6 7 |
# File 'lib/jets/cfn/builders/shared_builder.rb', line 3 def compose stack = @app_class.new # @app_class is subclass. IE: Alarm < Jets::Stack builder = Jets::Stack::Builder.new(stack) @template = builder.template # overwrite entire @template end |
#template_path ⇒ Object
template_path is an interface method for Interface module
10 11 12 |
# File 'lib/jets/cfn/builders/shared_builder.rb', line 10 def template_path Jets::Naming.shared_template_path(@app_class) end |