in lib/elastic/transport/client.rb [242:256]
def extract_hosts
hosts = case hosts_config
when String
hosts_config.split(',').map { |h| h.strip! || h }
when Array
hosts_config
when Hash, URI
[hosts_config]
else
Array(hosts_config)
end
host_list = hosts.map { |host| parse_host(host) }
@arguments[:randomize_hosts] ? host_list.shuffle! : host_list
end