class Rake::CpuCounter
:nodoc: all
Based on a script at:
def self.count
http://stackoverflow.com/questions/891537/ruby-detect-number-of-cpus-installed
Based on a script at:
def self.count new.count_with_default end
def count
def count return Etc.nprocessors end
def count_with_default(default=4)
def count_with_default(default=4) count || default rescue StandardError default end