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.
3 4 5 6 7 8 |
# File 'lib/kelbim/wrapper/elb-wrapper.rb', line 3 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
10 11 12 |
# File 'lib/kelbim/wrapper/elb-wrapper.rb', line 10 def load_balancers LoadBalancerCollection.new(@elb.load_balancers, @options) end |
#updated? ⇒ Boolean
14 15 16 |
# File 'lib/kelbim/wrapper/elb-wrapper.rb', line 14 def updated? !!@options.updated end |