From 3a4abe4f98d4c24989a1def59968cb49d1d26268 Mon Sep 17 00:00:00 2001 From: b4ldr Date: Mon, 22 Feb 2016 12:52:07 +0000 Subject: add options support fix ruby 1.9 hash correct --- templates/options.erb | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 templates/options.erb (limited to 'templates') diff --git a/templates/options.erb b/templates/options.erb new file mode 100644 index 0000000..036d31f --- /dev/null +++ b/templates/options.erb @@ -0,0 +1,11 @@ +Dpkg::Options { +<%- @_options.each_pair do |config, value| + if %w(force_confdef force_confold force_confnew force_confmiss).include?(config) then + if value then -%> + "--<%= config.sub('_','-') -%>"; + <%- end + else + scope.function_fail(["#{config} not a valid key for $unattended_upgrades::options"]) + end +end -%> +} -- cgit v1.2.3