Class: AwsInventory::Eb

Inherits:
Base
  • Object
show all
Defined in:
lib/aws_inventory/eb.rb

Instance Method Summary collapse

Methods inherited from Base

eager_load!, inherited, #initialize, #report, #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

#dataObject



6
7
8
9
10
11
12
13
14
# File 'lib/aws_inventory/eb.rb', line 6

def data
  eb_environments.map do |environment|
    [
      environment.environment_name,
      environment.application_name,
      environment.solution_stack_name,
    ]
  end
end

#eb_environmentsObject



16
17
18
# File 'lib/aws_inventory/eb.rb', line 16

def eb_environments
  @eb_environments ||= eb.describe_environments.environments
end

#headerObject



2
3
4
# File 'lib/aws_inventory/eb.rb', line 2

def header
  ["Environment", "Application", "Solution Stack"]
end