diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/rdiff.conf.erb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/templates/rdiff.conf.erb b/templates/rdiff.conf.erb index 2906dc4..f5548e4 100644 --- a/templates/rdiff.conf.erb +++ b/templates/rdiff.conf.erb @@ -21,6 +21,12 @@ type = local <%= exclude.map { |i| "exclude = #{i}" }.join("\n") %> <% end -%> +<% if vsinclude.is_a? String -%> +<%= 'vsinclude = ' + vsinclude %> +<% elsif vsinclude.is_a? Array -%> +<%= vsinclude.map { |i| "vsinclude = #{i}" }.join("\n") %> +<% end -%> + [dest] <% %w{type host directory user sshoptions}.each do |v| if @scope.lookupvar(v) |