rename supervisord base template to app

add supervisord stub
This commit is contained in:
Raphael Randschau
2012-02-23 17:24:08 +01:00
parent 8cb58b8517
commit 1127551369
5 changed files with 105 additions and 18 deletions
+3 -3
View File
@@ -18,9 +18,9 @@ class Foreman::Export::Supervisord < Foreman::Export::Base
FileUtils.rm(file)
end
master_template = export_template("supervisord", "master.conf.erb", template_root)
master_config = ERB.new(master_template).result(binding)
write_file "#{location}/#{app}.conf", master_config
app_template = export_template("supervisord", "app.conf.erb", template_root)
app_config = ERB.new(app_template).result(binding)
write_file "#{location}/#{app}.conf", app_config
end
end