foreman 0.9.0 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/foreman.rb +1 -1
- data/lib/foreman/engine.rb +2 -2
- metadata +3 -3
data/lib/foreman.rb
CHANGED
data/lib/foreman/engine.rb
CHANGED
@@ -36,7 +36,7 @@ class Foreman::Engine
|
|
36
36
|
|
37
37
|
def process_order
|
38
38
|
processes
|
39
|
-
@order
|
39
|
+
@order.uniq
|
40
40
|
end
|
41
41
|
|
42
42
|
def processes_in_order
|
@@ -69,7 +69,7 @@ class Foreman::Engine
|
|
69
69
|
|
70
70
|
def port_for(process, num, base_port=nil)
|
71
71
|
base_port ||= 5000
|
72
|
-
offset =
|
72
|
+
offset = processes_in_order.map(&:first).index(process.name) * 100
|
73
73
|
base_port.to_i + offset + num - 1
|
74
74
|
end
|
75
75
|
|
metadata
CHANGED