Commit 018f03e5 authored by Silvio Rhatto's avatar Silvio Rhatto

Fixing handling for include and exclude parameters as arrays at rsync template

parent 6c081113
......@@ -12,9 +12,13 @@
end -%>
[source]
<%- %w{from include exclude}.each do |v|
if has_variable?(v) and instance_variable_get("@#{v}").to_s != "false" -%>
<%= v + ' = ' + instance_variable_get("@#{v}").to_s %>
<% unless from.empty? and from.to_s != "false" -%>
from = <%= from %>
<% end -%>
<%- %w{include exclude}.each do |v|
if has_variable?(v)
instance_variable_get("@#{v}").to_a.each do |parameter| -%>
<%= v + ' = ' + parameter %>
<%-
end
end -%>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment