Module: Master

Defined in:
lib/spark/worker/master.rb

Overview

Master

Defined Under Namespace

Classes: Base, Process, Thread

Class Method Summary collapse

Class Method Details

.createObject



20
21
22
23
24
25
26
27
# File 'lib/spark/worker/master.rb', line 20

def self.create
  case ARGV[0].to_s.strip
  when 'thread'
    Master::Thread.new
  else
    Master::Process.new
  end
end