lib/dumper/database/postgresql.rb in dumper-1.5.0 vs lib/dumper/database/postgresql.rb in dumper-1.6.0

- old
+ new

@@ -1,12 +1,12 @@ module Dumper module Database class PostgreSQL < Base DUMP_TOOL = 'pg_dump' - FILE_EXT = 'sql.gz' + FORMAT = 'sql' def command - "cd #{tmpdir} && #{password_variable} #{dump_tool_path} #{connection_options} #{@config[:database]} | gzip > #{filename}" + "cd #{tmpdir} && #{password_variable} #{dump_tool_path} #{connection_options} #{custom_options} #{@config[:database]} | gzip > #{filename}" end def connection_options [ :host, :port, :socket, :username ].map do |option| next if @config[option].blank?