Method: Inf::LoadBalancer#status
- Defined in:
- lib/load_balancer.rb
#status ⇒ Object
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
# File 'lib/load_balancer.rb', line 33 def status lb_name = get_state "apps/#{app_name}/lb-name" unless lb_name puts "Load balancer is not configured".blue return end lb = elb. describe_load_balancers(load_balancer_names: [lb_name]). load_balancer_descriptions[0] unless lb puts "Load balancer expected but not found!".red return end puts "Load balancer is at #{lb.dns_name} with ".blue + "#{lb.instances.count} instances".blue end |