Skip to content

Commit

Permalink
Merge pull request #980 from jlambert121/1668_indenting
Browse files Browse the repository at this point in the history
MODULES-1688: fix indenting in vhost/_directories.erb template
  • Loading branch information
hunner committed Jan 22, 2015
2 parents b2a543f + 16e2a0d commit 08158d4
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions templates/vhost/_directories.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,20 @@
## Directories, there should at least be a declaration for <%= @docroot %>
<%- [@_directories].flatten.compact.each do |directory| -%>
<%- if directory['path'] and directory['path'] != '' -%>
<%- if directory['provider'] and directory['provider'].match('(directory|location|files)') -%>
<%- if /^(.*)match$/ =~ directory['provider'] -%>
<%- provider = $1.capitalize + 'Match' -%>
<%- else -%>
<%- provider = directory['provider'].capitalize -%>
<%- end -%>
<%- else -%>
<%- provider = 'Directory' -%>
<%- end -%>
<%- path = directory['path'] -%>
<%- if directory['provider'] and directory['provider'].match('(directory|location|files)') -%>
<%- if /^(.*)match$/ =~ directory['provider'] -%>
<%- provider = $1.capitalize + 'Match' -%>
<%- else -%>
<%- provider = directory['provider'].capitalize -%>
<%- end -%>
<%- else -%>
<%- provider = 'Directory' -%>
<%- end -%>
<%- path = directory['path'] -%>

<<%= provider %> "<%= path %>">
<%- if directory['headers'] -%>
<%- Array(directory['headers']).each do |header| -%>
<%- if directory['headers'] -%>
<%- Array(directory['headers']).each do |header| -%>
Header <%= header %>
<%- end -%>
<%- end -%>
Expand Down Expand Up @@ -89,7 +89,7 @@
<%- end -%>
<%- if directory['php_flags'] and ! directory['php_flags'].empty? -%>
<%- directory['php_flags'].sort.each do |flag,value| -%>
<%- value = if value =~ /true|yes|on|1/i then 'on' else 'off' end -%>
<%- value = if value =~ /true|yes|on|1/i then 'on' else 'off' end -%>
php_flag <%= "#{flag} #{value}" %>
<%- end -%>
<%- end -%>
Expand All @@ -100,7 +100,7 @@
<%- end -%>
<%- if directory['php_admin_flags'] and ! directory['php_admin_flags'].empty? -%>
<%- directory['php_admin_flags'].sort.each do |flag,value| -%>
<%- value = if value =~ /true|yes|on|1/i then 'on' else 'off' end -%>
<%- value = if value =~ /true|yes|on|1/i then 'on' else 'off' end -%>
php_admin_flag <%= "#{flag} #{value}" %>
<%- end -%>
<%- end -%>
Expand Down

0 comments on commit 08158d4

Please sign in to comment.