Class: AwsInventory::SecurityGroup

Inherits:
Base
  • Object
show all
Defined in:
lib/aws_inventory/security_group.rb,
lib/aws_inventory/security_group/open.rb,
lib/aws_inventory/security_group/unused.rb,
lib/aws_inventory/security_group/summary.rb

Defined Under Namespace

Modules: Shared Classes: Open, Summary, Unused

Instance Method Summary collapse

Methods inherited from Base

eager_load!, inherited, #initialize, #show, #sort, subclasses, #test_mode

Methods included from AwsServices

#acm, #cfn, #cw, #eb, #ec2, #ecs, #elbv1, #elbv2, #iam, #pricing, #rds, #route53

Methods included from Shared

#instances, #security_groups

Constructor Details

This class inherits a constructor from AwsInventory::Base

Instance Method Details

#reportObject

Default is the open report because it seems like the most useful report



8
9
10
11
12
# File 'lib/aws_inventory/security_group.rb', line 8

def report
  Summary.new(@options).report if show(:summary)
  Open.new(@options).report if show(:open)
  Unused.new(@options).report if show(:unused)
end