module Convection::DSL::Template::Resource::EC2InternetGateway
Add DSL
for VPCGatewayAttachment
Public Instance Methods
attach_to_vpc(vpc, &block)
click to toggle source
# File lib/convection/model/template/resource/aws_ec2_internet_gateway.rb, line 11 def attach_to_vpc(vpc, &block) a = Model::Template::Resource::EC2VPCGatewayAttachment.new("#{ name }VPCAttachment#{ vpc.name }", self) a.vpc(vpc) a.internet_gateway(self) a.instance_exec(&block) if block @template.resources[a.name] = a end