lib/osa/security_groups.rb
def objectize_security_groups(security_groups)
      security_groups.keys.map do |sec_id|
        secgrp_raw     = security_groups[sec_id]
        rules_objects  = secgrp_raw[:rules].map { |rule| build_rule_object(rule, secgrp_raw) }
        build_security_group_object(secgrp_raw, rules_objects)
      end
    end
# Takes a raw security_group from OpenStack#security_groups and parse it into objects of
#   SecurityGroup objects for security group and Rule objects for rules
#
# @return [Array <SecurityGroup>]
#
Takes a raw security_group from OpenStack#security_groups and parse it into objects of
SecurityGroup objects for security group and Rule objects for rules
Takes a raw security_group from OpenStack#security_groups and parse it into objects of SecurityGroup objects for security group and Rule objects for rules
def objectize_security_groups(security_groups)
      security_groups.keys.map do |sec_id|
        secgrp_raw     = security_groups[sec_id]
        rules_objects  = secgrp_raw[:rules].map { |rule| build_rule_object(rule, secgrp_raw) }
        build_security_group_object(secgrp_raw, rules_objects)
      end
    end
def objectize_security_groups ( security_groups ) security_groups . keys . map do | sec_id | secgrp_raw = security_groups [ sec_id ] rules_objects = secgrp_raw [ :rules ] . map { | rule | build_rule_object ( rule , secgrp_raw ) } build_security_group_object ( secgrp_raw , rules_objects ) end end
Takes a raw security_group from OpenStack#security_groups and parse it into objects of
SecurityGroup objects for security group and Rule objects for rules
Takes a raw security_group from OpenStack#security_groups and parse it into objects of SecurityGroup objects for security group and Rule objects for rules
None
Array <SecurityGroup>
security_groups