Sha256: cc1d7a9e510c97eba687e6e1f82c3d87c7bc562376fac3cd654e94faa5eebb87
Contents?: true
Size: 826 Bytes
Versions: 27
Compression:
Stored size: 826 Bytes
Contents
class Jets::Cfn::Builders class ApiDeploymentBuilder include Interface include Jets::AwsServices def initialize(options={}) @options = options @template = ActiveSupport::HashWithIndifferentAccess.new(Resources: {}) end # compose is an interface method def compose return unless @options[:templates] || @options[:stack_type] != :minimal deployment = Jets::Resource::ApiGateway::Deployment.new add_resource(deployment) add_parameters(deployment.parameters) add_outputs(deployment.outputs) end # template_path is an interface method def template_path Jets::Naming.api_deployment_template_path end # do not bother writing a template if routes are empty def write super unless Jets::Router.routes.empty? end end end
Version data entries
27 entries across 27 versions & 1 rubygems