Method: Amazon#security
- Defined in:
- lib/cluster/infrastructures/amazon.rb
#security(groups) ⇒ Object
551 552 553 554 555 556 557 558 559 560 |
# File 'lib/cluster/infrastructures/amazon.rb', line 551 def security(groups) ecc.describe_security_groups(groups).inject({}) {|m,g| p = g[:aws_perms].map {|p| next unless p[:cidr_ips] [p[:cidr_ips], p[:from_port]..p[:to_port]] }.compact m.merge g[:aws_group_name] => p } end |