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:
parent
12f539c577
commit
1f80a347d2
1 changed files with 6 additions and 0 deletions
|
@ -45,6 +45,12 @@ module Fog
|
||||||
data
|
data
|
||||||
end
|
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
|
# Return events related to this version
|
||||||
def events
|
def events
|
||||||
requires :id
|
requires :id
|
||||||
|
|
Loading…
Reference in a new issue