Class: Fog::AWS::ElasticBeanstalk::Versions
- Inherits:
-
Collection
- Object
- Collection
- Fog::AWS::ElasticBeanstalk::Versions
- Defined in:
- lib/fog/aws/models/beanstalk/versions.rb
Instance Method Summary collapse
Instance Method Details
#all(options = {}) ⇒ Object
9 10 11 12 |
# File 'lib/fog/aws/models/beanstalk/versions.rb', line 9 def all(={}) data = service.describe_application_versions().body['DescribeApplicationVersionsResult']['ApplicationVersions'] load(data) # data is an array of attribute hashes end |
#get(application_name, version_label) ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/fog/aws/models/beanstalk/versions.rb', line 14 def get(application_name, version_label) if data = service.describe_application_versions({ 'ApplicationName' => application_name, 'VersionLabels' => [version_label] }).body['DescribeApplicationVersionsResult']['ApplicationVersions'] if data.length == 1 new(data.first) end end end |