Module: Convection::DSL::Template::Resource::EC2RouteTable

Included in:
Model::Template::Resource::EC2RouteTable
Defined in:
lib/convection/model/template/resource/aws_ec2_route_table.rb

Overview

DSL For routes

Instance Method Summary collapse

Instance Method Details

#route(name, &block) ⇒ Object



11
12
13
14
15
16
17
# File 'lib/convection/model/template/resource/aws_ec2_route_table.rb', line 11

def route(name, &block)
  r = Model::Template::Resource::EC2Route.new("#{ self.name }Route#{ name }", @template)
  r.route_table_id(reference)

  r.instance_exec(&block) if block
  @template.resources[r.name] = r
end