1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[aws|beanstalk] Added #load_balancer method.

Added a convenience method to get the load balancer model associated
with the beanstalk environment.
This commit is contained in:
George Scott 2012-03-30 10:33:58 -07:00
parent 12f539c577
commit 1f80a347d2

View file

@ -45,6 +45,12 @@ module Fog
data
end
# Returns the load balancer object associated with the environment.
def load_balancer(elb_connection = Fog::AWS[:elb])
requires :resources
elb_connection.load_balancers.get(resources['LoadBalancer']['LoadBalancerName'])
end
# Return events related to this version
def events
requires :id