Module: Staypuft::HostsHelper
- Defined in:
- app/helpers/staypuft/hosts_helper.rb
Instance Method Summary collapse
Instance Method Details
#list_subnet_types(nic, subnets) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 |
# File 'app/helpers/staypuft/hosts_helper.rb', line 4 def list_subnet_types(nic, subnets) types = {} return types if nic.host.nil? || nic.host.deployment.nil? subnets.each do |subnet| types[subnet.id] = subnet_types(nic.host.deployment, subnet) end return types end |