15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# File 'lib/bbgapi/lb_backends.rb', line 15
def self.recurse
apps = BBGAPI::LB_Applications.only_name_id
choose do ||
.prompt = "Which Application?"
apps.each {|k|
.choices(k["name"]) {
BBGAPI::LB_Applications.set_app(k["id"])
cur_app = k["id"]
}
}
end
services = BBGAPI::LB_Services.only_name_id
choose do ||
.prompt = "Which Service?"
services.each {|k|
.choices(k["name"]) {
BBGAPI::LB_Services.set_service(k["id"])
cur_service = k["id"]
}
}
end
end
|