Class: Awspec::Generator::Doc::Type::SecurityGroup

Inherits:
Base
  • Object
show all
Defined in:
lib/awspec/generator/doc/type/security_group.rb

Instance Method Summary collapse

Methods inherited from Base

#collect_matchers, #doc_template, #generate_doc, #sort_num, #type_name

Constructor Details

#initializeSecurityGroup

Returns a new instance of SecurityGroup.



5
6
7
8
9
10
11
12
# File 'lib/awspec/generator/doc/type/security_group.rb', line 5

def initialize
  super
  @type = Awspec::Type::SecurityGroup.new('my-security-group-name')
  @ret = @type.resource_via_client
  @matchers = ['its(:inbound), its(:outbound)']
  @ignore_matchers = %w(be_opened be_inbound_opened be_outbound_opened)
  @describes = %w(inbound_rule_count outbound_rule_count inbound_permissions_count outbound_permissions_count)
end