Sha256: 55d0782dca92f9d8e7c8a60fbc521100bdec4eeb5477ffd60a51904ea28fdd15
Contents?: true
Size: 692 Bytes
Versions: 22
Compression:
Stored size: 692 Bytes
Contents
require 'fog/core/collection' require 'fog/aws/models/beanstalk/application' module Fog module AWS class ElasticBeanstalk class Applications < Fog::Collection model Fog::AWS::ElasticBeanstalk::Application def all(application_names=[]) data = service.describe_applications(application_names).body['DescribeApplicationsResult']['Applications'] load(data) # data is an array of attribute hashes end def get(application_name) if data = service.describe_applications([application_name]).body['DescribeApplicationsResult']['Applications'].first new(data) end end end end end end
Version data entries
22 entries across 22 versions & 5 rubygems