Class: Deploy::Eb::Application

Inherits:
Object
  • Object
show all
Defined in:
lib/deploy/eb/application.rb

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ Application

Returns a new instance of Application.



4
5
6
# File 'lib/deploy/eb/application.rb', line 4

def initialize(name)
  @name = name
end

Instance Method Details

#environmentsObject



8
9
10
11
12
# File 'lib/deploy/eb/application.rb', line 8

def environments
  request = {application_name: @name}
  response = elasticbeanstalk.describe_environments(request)
  response.environments.map(&:environment_name)
end