From bed832302927f757614680390de75083a923193d Mon Sep 17 00:00:00 2001 From: David Dollar Date: Tue, 8 Nov 2011 11:58:03 -0500 Subject: [PATCH] ensure concurrency=0 is handled during export --- lib/foreman/export/bluepill.rb | 1 - lib/foreman/export/upstart.rb | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/foreman/export/bluepill.rb b/lib/foreman/export/bluepill.rb index 8cf8e5a4..fae8a8b2 100644 --- a/lib/foreman/export/bluepill.rb +++ b/lib/foreman/export/bluepill.rb @@ -23,7 +23,6 @@ def export(location, options={}) master_template = export_template("bluepill", "master.pill.erb", template_root) master_config = ERB.new(master_template).result(binding) write_file "#{location}/#{app}.pill", master_config - end end diff --git a/lib/foreman/export/upstart.rb b/lib/foreman/export/upstart.rb index d7835053..47f8df41 100644 --- a/lib/foreman/export/upstart.rb +++ b/lib/foreman/export/upstart.rb @@ -27,6 +27,7 @@ def export(location, options={}) process_template = export_template("upstart", "process.conf.erb", template_root) engine.processes.each do |process| + next if (conc = concurrency[process.name]) < 1 process_master_template = export_template("upstart", "process_master.conf.erb", template_root) process_master_config = ERB.new(process_master_template).result(binding) write_file "#{location}/#{app}-#{process.name}.conf", process_master_config