Skip to content

Commit e56606d

Browse files
Mark Learyeputnam
Mark Leary
authored andcommitted
Add optional_args support in mysqldump provider.
1 parent 61646f2 commit e56606d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Diff for: templates/mysqlbackup.sh.erb

+6
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,12 @@ ADDITIONAL_OPTIONS="$ADDITIONAL_OPTIONS --skip-routines"
5454
<% end -%>
5555
<% end -%>
5656

57+
<%- if @optional_args and @optional_args.is_a?(Array) -%>
58+
<%- @optional_args.each do |arg| -%>
59+
ADDITIONAL_OPTIONS="$ADDITIONAL_OPTIONS <%= arg %>"
60+
<%- end -%>
61+
<%- end -%>
62+
5763
##### STOP CONFIG ####################################################
5864
PATH=<%= @execpath %>
5965

0 commit comments

Comments
 (0)