Method: BBGAPI::LB_Easy.menulist

Defined in:
lib/bbgapi/lb_easy.rb


4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/bbgapi/lb_easy.rb', line 4

def self.menulist(config)
  @@config = config
  #["bluebox_customer_id"]
  puts BBGAPI.dnssuffix
  choose do |menu|
    puts "Load Balancer Easy Functions"
    puts "----------------------------------------"
    menu.prompt = "Which Action?"

    menu.choices(:get_haproxy_login) {self.}
    menu.choices(:find_machines_in_pool) {self.machines_in_pool}
    menu.choices(:remove_machine_in_pool) {self.remove_machine_in_pool}

  end
end