Module: Formatron::Util::VPC
- Defined in:
- lib/formatron/util/vpc.rb
Overview
utility methods for VPCs
Class Method Summary collapse
Class Method Details
.instances(symbol, *vpcs) ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'lib/formatron/util/vpc.rb', line 5 def self.instances(symbol, *vpcs) subnets = vpcs.each_with_object([]) do |v, a| a.concat v.subnet.values end subnets.each_with_object({}) do |s, o| o.merge!(s.send(symbol)) end end |