aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2016-03-22 18:28:23 -0300
committerSilvio Rhatto <rhatto@riseup.net>2016-03-22 18:28:23 -0300
commiteb3a90efda501611e09c00f6160f600606955d54 (patch)
tree72aaa7ce18be352032b196bc7ca97a388c84b3c0
parentbfce265ba43643d8b3b3f486152663431c9a83da (diff)
downloadpuppet-backupninja-eb3a90efda501611e09c00f6160f600606955d54.tar.gz
puppet-backupninja-eb3a90efda501611e09c00f6160f600606955d54.tar.bz2
Fix deprecation warnings at svn template
-rw-r--r--templates/svn.conf.erb9
1 files changed, 4 insertions, 5 deletions
diff --git a/templates/svn.conf.erb b/templates/svn.conf.erb
index 67cdcd7..460c668 100644
--- a/templates/svn.conf.erb
+++ b/templates/svn.conf.erb
@@ -3,8 +3,7 @@
# the next time Puppet runs. Please make configuration changes to this
# service in Puppet.
-<% %w{src dest tmp vsname}.each do |v|
- if send(v)
- -%><%= v + ' = ' + send(v) + "\n" %><%
- end
-end -%>
+<%= 'src = '+ @src if @src %>
+<%= 'dest = '+ @dest if @dest %>
+<%= 'tmp = '+ @tmp if @tmp %>
+<%= 'vsname = '+ @vsname if @vsname %>