Module: Spinoff::Server
- Defined in:
- lib/spinoff/server.rb,
lib/spinoff/server/fork.rb,
lib/spinoff/server/jruby.rb,
lib/spinoff/server/generic.rb
Defined Under Namespace
Classes: Fork, Generic, JRuby
Class Method Summary
collapse
Class Method Details
.start(config) ⇒ Object
3
4
5
6
7
8
9
10
11
12
|
# File 'lib/spinoff/server.rb', line 3
def self.start(config)
case RUBY_PLATFORM
when /java/i
require 'spinoff/server/jruby'
Spinoff::Server::JRuby.start(config)
else
require 'spinoff/server/fork'
Spinoff::Server::Fork.start(config)
end
end
|