From 26b0236eb532ee99d217673eee9c910f6002e7e1 Mon Sep 17 00:00:00 2001 From: Nick Carboni Date: Mon, 12 Nov 2018 14:25:23 -0500 Subject: [PATCH] Merge pull request #18186 from NickLaMuro/add-port-option-to-evm-dba-tasks Add --port to evm:dba rake tasks (cherry picked from commit 7bbe250535faed5337bc3c5805ca27ea42523c84) --- lib/tasks/evm_dba.rake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/tasks/evm_dba.rake b/lib/tasks/evm_dba.rake index 7562cbaf98e..17904fa9bd7 100644 --- a/lib/tasks/evm_dba.rake +++ b/lib/tasks/evm_dba.rake @@ -29,6 +29,7 @@ module EvmDba opt :username, "Username", :type => :string opt :password, "Password", :type => :string opt :hostname, "Hostname", :type => :string + opt :port, "Port", :type => :string opt :dbname, "Database name", :type => :string when :local_file opt :local_file, "Destination file", :type => :string, :required => true @@ -51,7 +52,7 @@ module EvmDba end.delete_nils end - DB_OPT_KEYS = [:dbname, :username, :password, :hostname, :exclude_table_data, :byte_count].freeze + DB_OPT_KEYS = [:dbname, :username, :password, :hostname, :port, :exclude_table_data, :byte_count].freeze def self.collect_db_opts(opts) db_opts = {} DB_OPT_KEYS.each { |k| db_opts[k] = opts[k] if opts[k] }