class Fog::AWS::ElasticBeanstalk::Environments

Public Instance Methods

all(options={}) click to toggle source
# File lib/fog/aws/models/beanstalk/environments.rb, line 9
def all(options={})
  data = service.describe_environments(options).body['DescribeEnvironmentsResult']['Environments']
  load(data) # data is an array of attribute hashes
end
get(environment_name) click to toggle source

Gets an environment given a name.

# File lib/fog/aws/models/beanstalk/environments.rb, line 16
def get(environment_name)
  options = { 'EnvironmentNames' => [environment_name] }

  if data = service.describe_environments(options).body['DescribeEnvironmentsResult']['Environments'].first
    new(data)
  end
end