Skip to content

Commit

Permalink
Merge pull request #92 from iain/patch-1
Browse files Browse the repository at this point in the history
Processes is not a Hash, but an Array.
  • Loading branch information
ddollar committed Nov 8, 2011
2 parents c6a410b + caa688c commit f3c1e76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/foreman/export/inittab.rb
Expand Up @@ -12,7 +12,7 @@ def export(fname=nil, options={})
inittab = []
inittab << "# ----- foreman #{app} processes -----"

engine.processes.values.inject(1) do |index, process|
engine.processes.inject(1) do |index, process|
1.upto(concurrency[process.name]) do |num|
id = app.slice(0, 2).upcase + sprintf("%02d", index)
port = engine.port_for(process, num, options[:port])
Expand Down

0 comments on commit f3c1e76

Please sign in to comment.