| 35 | | template = ERB.new(IO.read(File.join(DEPREC_TEMPLATES_BASE, app.to_s, template)), nil, '-') |
|---|
| | 35 | # Local copies of deprec templates exist they will be used |
|---|
| | 36 | # e.g. config/templates/nginx/nginx.conf.erb |
|---|
| | 37 | local_template = File.join('config','templates',app.to_s, template) |
|---|
| | 38 | if File.exists?(local_template) |
|---|
| | 39 | puts |
|---|
| | 40 | puts "Using local template (#{local_template})" |
|---|
| | 41 | template = ERB.new(IO.read(local_template), nil, '-') |
|---|
| | 42 | else |
|---|
| | 43 | template = ERB.new(IO.read(File.join(DEPREC_TEMPLATES_BASE, app.to_s, template)), nil, '-') |
|---|
| | 44 | end |
|---|