Class: Fog::AWS::ElasticBeanstalk::Application
- Inherits:
-
Model
- Object
- Model
- Fog::AWS::ElasticBeanstalk::Application
- Defined in:
- lib/fog/aws/models/beanstalk/application.rb
Instance Method Summary collapse
- #destroy ⇒ Object
- #environments ⇒ Object
- #events ⇒ Object
-
#initialize(attributes = {}) ⇒ Application
constructor
A new instance of Application.
- #save ⇒ Object
- #templates ⇒ Object
- #versions ⇒ Object
Constructor Details
#initialize(attributes = {}) ⇒ Application
Returns a new instance of Application.
14 15 16 |
# File 'lib/fog/aws/models/beanstalk/application.rb', line 14 def initialize(attributes={}) super end |
Instance Method Details
#destroy ⇒ Object
38 39 40 41 42 |
# File 'lib/fog/aws/models/beanstalk/application.rb', line 38 def destroy requires :name service.delete_application(name) true end |
#environments ⇒ Object
18 19 20 21 |
# File 'lib/fog/aws/models/beanstalk/application.rb', line 18 def environments requires :name service.environments.all({'ApplicationName' => name}) end |
#events ⇒ Object
23 24 25 26 |
# File 'lib/fog/aws/models/beanstalk/application.rb', line 23 def events requires :name service.events.all({'ApplicationName' => name}) end |
#save ⇒ Object
44 45 46 47 48 49 50 51 52 53 54 55 |
# File 'lib/fog/aws/models/beanstalk/application.rb', line 44 def save requires :name = { 'ApplicationName' => name } ['Description'] = description unless description.nil? data = service.create_application().body['CreateApplicationResult']['Application'] merge_attributes(data) true end |
#templates ⇒ Object
28 29 30 31 |
# File 'lib/fog/aws/models/beanstalk/application.rb', line 28 def templates requires :name service.templates.all({'ApplicationName' => name}) end |
#versions ⇒ Object
33 34 35 36 |
# File 'lib/fog/aws/models/beanstalk/application.rb', line 33 def versions requires :name service.versions.all({'ApplicationName' => name}) end |