Navigation Menu

Skip to content

Commit

Permalink
Extract definition of dumper options
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Apr 10, 2015
1 parent b203be0 commit 782d368
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions lib/drndump/command.rb
Expand Up @@ -105,12 +105,18 @@ def create_option_parser
parser
end

def dumper_options
{
:host => @host,
:port => @port,
:tag => @tag,
:receiver_host => @receiver_host,
:receiver_port => @receiver_port,
}
end

def dump
@dumper = Dumper.new(:host => @host,
:port => @port,
:tag => @tag,
:receiver_host => @receiver_host,
:receiver_port => @receiver_port)
@dumper = Dumper.new(dumper_options)
client_options = {
:backend => :coolio,
:loop => @loop,
Expand Down

0 comments on commit 782d368

Please sign in to comment.