Module: Convection::DSL::Template::Resource::EC2NetworkACL
- Included in:
- Model::Template::Resource::EC2NetworkACL
- Defined in:
- lib/convection/model/template/resource/aws_ec2_network_acl.rb
Overview
Add DSL helpers to EC2NetworkACL
Instance Method Summary collapse
Instance Method Details
#entry(name, &block) ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/convection/model/template/resource/aws_ec2_network_acl.rb', line 11 def entry(name, &block) acl_entry = Model::Template::Resource::EC2NetworkACLEntry.new("#{ self.name }Entry#{ name }", @template) acl_entry.acl(self) acl_entry.instance_exec(&block) if block @template.resources[acl_entry.name] = acl_entry end |