Permalink
Browse files

cosmetic

  • Loading branch information...
1 parent a878fc6 commit 7928687060494bad2ac129caba0904d99ba73226 @ryanlecompte committed Apr 16, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 lib/redis_failover/cli.rb
@@ -12,14 +12,16 @@ def self.parse(source)
options[:password] = password.strip
end
- opts.on('-n', '--nodes redis nodes', 'Comma-separated redis host:port pairs (required)') do |nodes|
+ opts.on('-n', '--nodes redis nodes',
+ 'Comma-separated redis host:port pairs (required)') do |nodes|
# turns 'host1:port,host2:port' => [{:host => host, :port => port}, ...]
options[:nodes] = nodes.split(',').map do |node|
Hash[[:host, :port].zip(node.strip.split(':'))]
end
end
- opts.on('-z', '--zkservers zookeeper servers', 'Comma-separated zookeeper host:port pairs (required)') do |servers|
+ opts.on('-z', '--zkservers zookeeper servers',
+ 'Comma-separated zookeeper host:port pairs (required)') do |servers|
options[:zkservers] = servers
end

0 comments on commit 7928687

Please sign in to comment.