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.

Parameters:

  • hosts (Array)

    beaker hosts

Returns:

  • (Array)

    unique list of hypervisors



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