Sha256: 050739edaf3e277f43e521e1adc5f041aba0cb3e501a2f8d702fd5db88120234

Contents?: true

Size: 546 Bytes

Versions: 8

Compression:

Stored size: 546 Bytes

Contents

# Implements:
#
#   compose
#   template_path
#
class Jets::Cfn::Builders
  class FunctionBuilder < BaseChildBuilder
    # compose is an interface method for Interface module
    def compose
      add_common_parameters
      add_functions
    end

    # For function stacks, ensure there's a _function.yml at the end of the
    # template_path name for easy identification.
    def template_path
      path = super
      unless path.include?("function.yml")
        path = path.sub(".yml", "_function.yml")
      end
      path
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
jets-0.10.4 lib/jets/cfn/builders/function_builder.rb
jets-0.10.3 lib/jets/cfn/builders/function_builder.rb
jets-0.10.2 lib/jets/cfn/builders/function_builder.rb
jets-0.10.1 lib/jets/cfn/builders/function_builder.rb
jets-0.10.0 lib/jets/cfn/builders/function_builder.rb
jets-0.9.2 lib/jets/cfn/builders/function_builder.rb
jets-0.9.1 lib/jets/cfn/builders/function_builder.rb
jets-0.9.0 lib/jets/cfn/builders/function_builder.rb