Memoizing at the Class level wreaks havoc on the specs.

This commit is contained in:
Chris Lowder
2011-10-19 18:02:49 +01:00
parent ada41ce311
commit 02c8d2cb10
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ require "foreman"
class Foreman::Utils
def self.parse_concurrency(concurrency)
@concurrency ||= begin
begin
pairs = concurrency.to_s.gsub(/\s/, "").split(",")
pairs.inject(Hash.new(1)) do |hash, pair|
process, amount = pair.split("=")