Class: Kelbim::ELBWrapper
- Inherits:
-
Object
- Object
- Kelbim::ELBWrapper
- Defined in:
- lib/kelbim/wrapper/policy.rb,
lib/kelbim/wrapper/listener.rb,
lib/kelbim/wrapper/elb-wrapper.rb,
lib/kelbim/wrapper/load-balancer.rb,
lib/kelbim/wrapper/policy-collection.rb,
lib/kelbim/wrapper/listener-collection.rb,
lib/kelbim/wrapper/load-balancer-collection.rb
Defined Under Namespace
Classes: LoadBalancerCollection
Instance Method Summary collapse
-
#initialize(elb, options) ⇒ ELBWrapper
constructor
A new instance of ELBWrapper.
- #load_balancers ⇒ Object
- #updated? ⇒ Boolean
Constructor Details
#initialize(elb, options) ⇒ ELBWrapper
Returns a new instance of ELBWrapper.
6 7 8 9 10 11 |
# File 'lib/kelbim/wrapper/elb-wrapper.rb', line 6 def initialize(elb, ) @elb = elb @options = .dup @options.instance_names = @options.ec2.instance_names @options.security_group_names = @options.ec2.security_group_names end |
Instance Method Details
#load_balancers ⇒ Object
13 14 15 |
# File 'lib/kelbim/wrapper/elb-wrapper.rb', line 13 def load_balancers LoadBalancerCollection.new(@elb.load_balancers, @options) end |
#updated? ⇒ Boolean
17 18 19 |
# File 'lib/kelbim/wrapper/elb-wrapper.rb', line 17 def updated? !!@options.updated end |