class MiGA::Daemon
def next_host
In SSH daemons, retrieve the host index of an available node, nil if none.
#
def next_host return jobs_running.size < maxjobs if runopts(:type) != 'ssh' allk = (0..nodelist.size - 1).to_a busyk = jobs_running.map { |k| k[:hostk] } (allk - busyk).first end