diff options
author | Micah Anderson <micah@riseup.net> | 2008-06-05 16:13:02 +0000 |
---|---|---|
committer | Micah Anderson <micah@riseup.net> | 2008-06-05 16:13:02 +0000 |
commit | ebcd9d1dfe6ab890cedd1409346f59ee19bb89e6 (patch) | |
tree | 35ee2377bf48481614399fa5985f44f744dedb27 /templates | |
parent | ebec65f24c7dbf53dd294614255fbca1a3168b77 (diff) | |
download | puppet-backupninja-ebcd9d1dfe6ab890cedd1409346f59ee19bb89e6.tar.gz puppet-backupninja-ebcd9d1dfe6ab890cedd1409346f59ee19bb89e6.tar.bz2 |
Add vsinclude option to rdiff handler
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) |