Created
February 6, 2015 16:27
-
-
Save justindossey/26784dadf02a6792204d to your computer and use it in GitHub Desktop.
search with defaults
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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