Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
ensure concurrency=0 is handled during export
  • Loading branch information
ddollar committed Nov 8, 2011
1 parent f6ef5a5 commit bed8323
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion lib/foreman/export/bluepill.rb
Expand Up @@ -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
1 change: 1 addition & 0 deletions lib/foreman/export/upstart.rb
Expand Up @@ -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
Expand Down

0 comments on commit bed8323

Please sign in to comment.