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.



3
4
5
6
7
8
# File 'lib/kelbim/wrapper/elb-wrapper.rb', line 3

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



10
11
12
# File 'lib/kelbim/wrapper/elb-wrapper.rb', line 10

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

#updated?Boolean

Returns:

  • (Boolean)


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

def updated?
  !!@options.updated
end