Noop indent and cleanup the my.cnf template

This commit is contained in:
Jim Radford 2014-01-22 16:53:51 -08:00
parent f348e12a37
commit 08e8477e96

View file

@ -1,21 +1,20 @@
<% @options.sort.map do |k,v| -%>
<% if v.is_a?(Hash) -%>
[<%= k %>]
<% @options[k].sort.map do |ki, vi| -%>
<% if vi == true -%>
<%= ki %>
<% elsif vi.is_a?(Array) -%>
<% vi.each do |vii| -%>
<%= ki %> = <%= vii %>
<% end -%>
<% elsif vi and vi != '' -%>
<%= ki %> = <%= vi %>
<% elsif vi -%>
<%= ki %>
<% end -%>
<% end -%>
<% end -%>
<% if v.is_a?(Hash) -%>
[<%= k %>]
<% v.sort.map do |ki, vi| -%>
<% if vi == true -%>
<%= ki %>
<% elsif vi.is_a?(Array) -%>
<% vi.each do |vii| -%>
<%= ki %> = <%= vii %>
<% end -%>
<% elsif vi and vi != '' -%>
<%= ki %> = <%= vi %>
<% elsif vi -%>
<%= ki %>
<% end -%>
<% end -%>
<% end %>
<% end -%>
!includedir /etc/mysql/conf.d/