Class: Deploy::Eb::Application
- Inherits:
-
Object
- Object
- Deploy::Eb::Application
- Defined in:
- lib/deploy/eb/application.rb
Instance Method Summary collapse
- #environments ⇒ Object
-
#initialize(name) ⇒ Application
constructor
A new instance of Application.
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
#environments ⇒ Object
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 |