Sha256: effcb37646d3a31050d7c71ec10c16ad3c87a111e9298cc2a502276ffdfe7aad
Contents?: true
Size: 789 Bytes
Versions: 18
Compression:
Stored size: 789 Bytes
Contents
require 'fog/core/collection' require 'fog/aws/models/beanstalk/environment' module Fog module AWS class ElasticBeanstalk class Environments < Fog::Collection model Fog::AWS::ElasticBeanstalk::Environment def all(options={}) data = connection.describe_environments(options).body['DescribeEnvironmentsResult']['Environments'] load(data) # data is an array of attribute hashes end # Gets an environment given a name. # def get(environment_name) options = { 'EnvironmentNames' => [environment_name] } if data = connection.describe_environments(options).body['DescribeEnvironmentsResult']['Environments'].first new(data) end end end end end end
Version data entries
18 entries across 18 versions & 9 rubygems