Skip to content

Instantly share code, notes, and snippets.

@justindossey
Created February 6, 2015 16:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save justindossey/26784dadf02a6792204d to your computer and use it in GitHub Desktop.
Save justindossey/26784dadf02a6792204d to your computer and use it in GitHub Desktop.
search with defaults
default_redis_ip = 'localhost'
master_node = search(:node, 'role:redis-master').first
default_redis_ip = master_node.ipaddress unless master_node.nil?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment