Class: Jets::Cfn::Builders::SharedBuilder

Inherits:
BaseChildBuilder show all
Defined in:
lib/jets/cfn/builders/shared_builder.rb

Instance Method Summary collapse

Methods inherited from BaseChildBuilder

#add_class_iam_policy, #add_common_parameters, #add_function, #add_function_iam_policy, #add_functions, #depends_on_params, #initialize, #validate_function_names!

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

#composeObject



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_pathObject

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::Names.shared_template_path(@app_class)
end