lib/osa/security_groups.rb
def build_rule_object(rule, security_group)
      Rule.new(
          rule[:id],                # rule's id
          rule[:ip_protocol],       # protocol
          rule[:from_port],         # source ports
          rule[:to_port],           # destination ports
          rule[:ip_range][:cidr],   # source ip_range
          rule[:parent_group_id],   # the original security group's id
          security_group[:name],    # the original security group's id
          rule[:group][:name]       # remote security group
      )
    end
# Build Rule object while parsing (@see parser)
#
# @return [Rule]
#
Build Rule object while parsing (@see parser)
Build Rule object while parsing ( @see parser )
def build_rule_object(rule, security_group)
      Rule.new(
          rule[:id],                
          rule[:ip_protocol],       
          rule[:from_port],         
          rule[:to_port],           
          rule[:ip_range][:cidr],   
          rule[:parent_group_id],   
          security_group[:name],    
          rule[:group][:name]       
      )
    end
def build_rule_object ( rule , security_group ) Rule . new ( rule [ :id ] , rule [ :ip_protocol ] , rule [ :from_port ] , rule [ :to_port ] , rule [ :ip_range ] [ :cidr ] , rule [ :parent_group_id ] , security_group [ :name ] , rule [ :group ] [ :name ] ) end
Build Rule object while parsing (@see parser)
Build Rule object while parsing ( @see parser )
# rule's id # protocol # source ports # destination ports # source ip_range # the original security group's id # the original security group's id # remote security group
None
Rule
rule
security_group