From 3aa24556f481951e2861546cfdc32ec7288de2db Mon Sep 17 00:00:00 2001 From: Ray Lehtiniemi Date: Thu, 14 Aug 2014 13:10:59 -0600 Subject: [PATCH] Support repeated application options by passing an array of values The motivating example was: $application_options => { py-autoreload => 1, touch-reload => [ 'file1', 'file2', 'file3', ], } Signed-off-by: Ray Lehtiniemi --- templates/uwsgi_app.ini.erb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/templates/uwsgi_app.ini.erb b/templates/uwsgi_app.ini.erb index 0b0551a..c810db4 100644 --- a/templates/uwsgi_app.ini.erb +++ b/templates/uwsgi_app.ini.erb @@ -9,9 +9,17 @@ gid = <%= @gid %> <% if @application_options @application_options.sort.each do |key, value| + if value.is_a? Array + value.each do |v| +-%> +<%= key %> = <%= v%> +<% + end + else -%> <%= key %> = <%= value%> <% + end end end