Skip to content

Commit

Permalink
Merge pull request #18186 from NickLaMuro/add-port-option-to-evm-dba-…
Browse files Browse the repository at this point in the history
…tasks

Add --port to evm:dba rake tasks

(cherry picked from commit 7bbe250)
  • Loading branch information
carbonin authored and simaishi committed Nov 12, 2018
1 parent 03e4ba5 commit 26b0236
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/tasks/evm_dba.rake
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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] }
Expand Down

0 comments on commit 26b0236

Please sign in to comment.