elasticsearch-ruby
https://github.com/elastic/elasticsearch-ruby
Ruby
Ruby integrations for Elasticsearch
Elasticsearch::Transport::Transport::Base#__rebuild_connections
Rebuilds the connections collection in the transport. The methods *adds* new connections from the passed hosts to the collection, and *removes* all connections not contained in the passed hosts.
Edit
git clone [email protected]:elastic/elasticsearch-ruby.git
cd elasticsearch-ruby
open elasticsearch-transport/lib/elasticsearch/transport/transport/base.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Elasticsearch--Transport--Transport--Base-__rebuild_connections-for-pr
# Commit to gitgit add elasticsearch-transport/lib/elasticsearch/transport/transport/base.rbgit commit -m "better docs for Elasticsearch::Transport::Transport::Base#__rebuild_connections"
# 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--Base-__rebuild_connections-for-pr
hub pull-request
# Celebrate!