class Bundler::ParallelInstaller

def self.max_threads

Returns max number of threads machine can handle with a min of 1
def self.max_threads
  [Bundler.settings[:jobs].to_i - 1, 1].max
end