Method: Beaker::Options::Parser#get_hypervisors
- Defined in:
- lib/beaker/options/parser.rb
#get_hypervisors(hosts) ⇒ Array
Get a unique list of hypervisors from list of host.
420 421 422 423 424 |
# File 'lib/beaker/options/parser.rb', line 420 def get_hypervisors(hosts) hypervisors = [] hosts.each_key { |name| hypervisors << hosts[name][:hypervisor].to_s } hypervisors.uniq end |