Module: Wolfpack

Defined in:
lib/wolfpack.rb,
lib/wolfpack/version.rb

Defined Under Namespace

Classes: CLI, Configurator, Runner

Constant Summary collapse

STDIN_READ_TIMEOUT =

Wait 10 seconds before blowing up if stdio isn’t reading any data.

10
VERSION =
"0.0.3"

Class Method Summary collapse

Class Method Details

.processor_countObject

Gets the number of “processors” on the current machine. This does not map directly to physical cores. For example, a hyperthreaded Intel chip may have 2 physical cores but show up as 4 cores.



10
11
12
# File 'lib/wolfpack.rb', line 10

def self.processor_count
  @processor_count ||= Parallel.processor_count
end