# File lib/fog/aws/models/beanstalk/environments.rb, line 11 def all(options={}) data = service.describe_environments(options).body['DescribeEnvironmentsResult']['Environments'] load(data) # data is an array of attribute hashes end
Gets an environment given a name.
# File lib/fog/aws/models/beanstalk/environments.rb, line 18 def get(environment_name) options = { 'EnvironmentNames' => [environment_name] } if data = service.describe_environments(options).body['DescribeEnvironmentsResult']['Environments'].first new(data) end end
Generated with the Darkfish Rdoc Generator 2.