Method: Awspec::Type::SecurityGroup#opened?

Defined in:
lib/awspec/type/security_group.rb

#opened?(port = nil, protocol = nil, cidr = nil) ⇒ Boolean

Returns:

  • (Boolean)


12
13
14
15
# File 'lib/awspec/type/security_group.rb', line 12

def opened?(port = nil, protocol = nil, cidr = nil)
  return inbound_opened?(port, protocol, cidr) if @inbound
  outbound_opened?(port, protocol, cidr)
end