X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/8de4907a86e25ac8a50be57f5c2a80f872017e77..9b1d5ebbe426b8158a9ee484a7e5371175e63949:/utils/redis-sha1.rb diff --git a/utils/redis-sha1.rb b/utils/redis-sha1.rb index 54d34dea..6f9e045b 100644 --- a/utils/redis-sha1.rb +++ b/utils/redis-sha1.rb @@ -29,4 +29,7 @@ def redisSha1(opts={}) sha1 end -p "Dataset SHA1: #{redisSha1()}" +host = ARGV[0] || "127.0.0.1" +port = ARGV[1] || "6379" +puts "Performing SHA1 of Redis server #{host} #{port}" +p "Dataset SHA1: #{redisSha1(:host => host, :port => port.to_i)}"