elasticsearch-ruby
https://github.com/elastic/elasticsearch-ruby
Ruby
Ruby integrations for Elasticsearch
Elasticsearch::Transport::Transport::Sniffer#hosts
Retrieves the node list from the Elasticsearch's [_Nodes Info API_](http://www.elasticsearch.org/guide/reference/api/admin-cluster-nodes-info/) and returns a normalized Array of information suitable for passing to transport. Shuffles the collection before returning it when the `randomize_hosts` option is set for transport.
Edit
git clone [email protected]:elastic/elasticsearch-ruby.git
cd elasticsearch-ruby
open elasticsearch-transport/lib/elasticsearch/transport/transport/sniffer.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Elasticsearch--Transport--Transport--Sniffer-hosts-for-pr
# Commit to gitgit add elasticsearch-transport/lib/elasticsearch/transport/transport/sniffer.rbgit commit -m "better docs for Elasticsearch::Transport::Transport::Sniffer#hosts"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Elasticsearch--Transport--Transport--Sniffer-hosts-for-pr
hub pull-request
# Celebrate!