Sha256: 082217c8769562a272e9498e704b5692b1996ebf2449bc690c2dd5507d858399
Contents?: true
Size: 338 Bytes
Versions: 32
Compression:
Stored size: 338 Bytes
Contents
require "foreman" class Foreman::Utils def self.parse_concurrency(concurrency) @concurrency ||= begin pairs = concurrency.to_s.gsub(/\s/, "").split(",") pairs.inject(Hash.new(1)) do |hash, pair| process, amount = pair.split("=") hash.update(process => amount.to_i) end end end end
Version data entries
32 entries across 32 versions & 2 rubygems