lib/dumper/database/postgresql.rb in dumper-1.1.2 vs lib/dumper/database/postgresql.rb in dumper-1.1.3

- old
+ new

@@ -7,10 +7,10 @@ def command "cd #{tmpdir} && #{password_variable} #{dump_tool_path} #{connection_options} #{@config[:database]} | gzip > #{filename}" end def connection_options - [ :host, :port, :socket ].map do |option| + [ :host, :port, :socket, :username ].map do |option| next if @config[option].blank? "--#{option}='#{@config[option]}'".gsub('--socket', '--host') end.compact.join(' ') end