2014-06-23 23:26:20 +02:00
|
|
|
<% if @location_cfg_append -%>
|
2014-06-26 05:40:22 +02:00
|
|
|
<%- @location_cfg_append.sort_by {|k,v| k}.each do |key,value| -%>
|
|
|
|
<%- if value.is_a?(Hash) -%>
|
2014-12-17 09:20:24 +01:00
|
|
|
<%- value.sort_by {|k,v| k}.each do |subkey,subvalue| -%>
|
2014-06-26 05:40:22 +02:00
|
|
|
<%- Array(subvalue).each do |asubvalue| -%>
|
2014-06-23 23:26:20 +02:00
|
|
|
<%= key %> <%= subkey %> <%= asubvalue %>;
|
|
|
|
<%- end -%>
|
2014-06-26 05:40:22 +02:00
|
|
|
<%- end -%>
|
|
|
|
<%- else -%>
|
|
|
|
<%- Array(value).each do |asubvalue| -%>
|
|
|
|
<%= key %> <%= asubvalue %>;
|
|
|
|
<%- end -%>
|
2014-06-23 23:26:20 +02:00
|
|
|
<%- end -%>
|
2014-06-26 05:40:22 +02:00
|
|
|
<%- end -%>
|
2014-06-23 23:26:20 +02:00
|
|
|
<% end -%>
|
|
|
|
<% if @location_custom_cfg_append -%>
|
2014-06-26 05:40:22 +02:00
|
|
|
<%- @location_custom_cfg_append.each do |key,value| -%>
|
|
|
|
<%- if value.is_a?(Hash) -%>
|
2014-12-17 09:20:24 +01:00
|
|
|
<%- value.sort_by {|k,v| k}.each do |subkey,subvalue| -%>
|
2014-06-26 05:40:22 +02:00
|
|
|
<%- Array(subvalue).each do |asubvalue| -%>
|
2014-06-23 23:26:20 +02:00
|
|
|
<%= key %> <%= subkey %> <%= asubvalue %>
|
|
|
|
<%- end -%>
|
2014-06-26 05:40:22 +02:00
|
|
|
<%- end -%>
|
|
|
|
<%- else -%>
|
|
|
|
<%- Array(value).each do |asubvalue| -%>
|
|
|
|
<%= key %> <%= asubvalue %>
|
|
|
|
<%- end -%>
|
|
|
|
<%- end -%>
|
|
|
|
<%- end -%>
|
|
|
|
<% end -%>
|
|
|
|
<% if @raw_append && Array(@raw_append).size > 0 -%>
|
|
|
|
<%- Array(@raw_append).each do |line| -%>
|
|
|
|
<%= line %>
|
2014-06-23 23:26:20 +02:00
|
|
|
<%- end -%>
|
2014-07-31 19:59:37 +02:00
|
|
|
<% end -%>
|
|
|
|
<% if @include -%>
|
|
|
|
<% @include.each do |include_file| -%>
|
|
|
|
include <%= include_file %>;
|
|
|
|
<%- end -%>
|
2014-06-23 23:26:20 +02:00
|
|
|
<% end -%>
|
|
|
|
}
|