Class: Jets::Cfn::Builder::Shared
- Defined in:
- lib/jets/cfn/builder/shared.rb
Instance Method Summary collapse
-
#compose ⇒ Object
interface method.
-
#template_path ⇒ Object
interface method.
Methods inherited from Nested
#add_class_iam_policy, #add_common_parameters, #add_function, #add_function_iam_policy, #add_functions, #build_class_iam_policy?, #depends_on_params, #initialize, #one_lambda_per_controller, #one_lambda_per_method, #scoped_routes, #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, #build?, #template, #text, #write
Methods included from Util::Camelize
Constructor Details
This class inherits a constructor from Jets::Cfn::Builder::Nested
Instance Method Details
#compose ⇒ Object
interface method
4 5 6 7 8 |
# File 'lib/jets/cfn/builder/shared.rb', line 4 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
interface method
11 12 13 |
# File 'lib/jets/cfn/builder/shared.rb', line 11 def template_path Jets::Names.shared_template_path(@app_class) end |