Class: Kelbim::ELBWrapper

Inherits:
Object
  • Object
show all
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

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, options)
  @elb = elb
  @options = options.dup
  @options.instance_names = @options.ec2.instance_names
  @options.security_group_names = @options.ec2.security_group_names
end

Instance Method Details

#load_balancersObject



13
14
15
# File 'lib/kelbim/wrapper/elb-wrapper.rb', line 13

def load_balancers
  LoadBalancerCollection.new(@elb.load_balancers, @options)
end

#updated?Boolean

Returns:

  • (Boolean)


17
18
19
# File 'lib/kelbim/wrapper/elb-wrapper.rb', line 17

def updated?
  !!@options.updated
end