From d5f3dbe0a5ff87a619bec9a99c0618f90f781659 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Tue, 20 Oct 2015 14:14:08 -0200 Subject: Fix variable deprecations on templates --- templates/backupninja.conf.erb | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'templates/backupninja.conf.erb') diff --git a/templates/backupninja.conf.erb b/templates/backupninja.conf.erb index fe7affa..20cc9b3 100644 --- a/templates/backupninja.conf.erb +++ b/templates/backupninja.conf.erb @@ -3,11 +3,11 @@ # the next time Puppet runs. Please make configuration changes to this # service in Puppet. -loglevel = <%= loglvl %> -when = <%= send(:when) %> -reportemail = <%= reportemail %> -reportsuccess = <%= reportsuccess ? 'yes' : 'no' %> -reportwarning = <%= reportwarning ? 'yes' : 'no' %> +loglevel = <%= @loglvl %> +when = <%= send(:@when) %> +reportemail = <%= @reportemail %> +reportsuccess = <%= @reportsuccess ? 'yes' : 'no' %> +reportwarning = <%= @reportwarning ? 'yes' : 'no' %> <% if @reporthost -%> <%= 'reporthost = ' + @reporthost %> <% end -%> @@ -17,9 +17,9 @@ reportwarning = <%= reportwarning ? 'yes' : 'no' %> <% if @reportdirectory -%> <%= 'reportdirectory = ' + @reportdirectory %> <% end -%> -logfile = <%= logfile %> -configdirectory = <%= configdir %> -scriptdirectory = <%= scriptdir %> -libdirectory = <%= libdir %> -usecolors = <%= usecolors ? 'yes' : 'no' %> -vservers = <%= vservers ? 'yes' : 'no' %> +logfile = <%= @logfile %> +configdirectory = <%= @configdir %> +scriptdirectory = <%= @scriptdir %> +libdirectory = <%= @libdir %> +usecolors = <%= @usecolors ? 'yes' : 'no' %> +vservers = <%= @vservers ? 'yes' : 'no' %> -- cgit v1.2.3