Sha256: 40ee07d9d1b5d099d305ced5b5ed9f174de337570de369c972085e33142a3854
Contents?: true
Size: 809 Bytes
Versions: 1
Compression:
Stored size: 809 Bytes
Contents
require 'rackspace-fog/core/collection' require 'rackspace-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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rackspace-fog-1.4.2 | lib/rackspace-fog/aws/models/beanstalk/environments.rb |