Module: Up::Ruby::RackCluster

Defined in:
lib/up/ruby/rack_cluster.rb

Class Method Summary collapse

Class Method Details

.run(app, options = {}) ⇒ Object



7
8
9
10
11
# File 'lib/up/ruby/rack_cluster.rb', line 7

def self.run(app, options = {})
  raise "already running" if @server
  @server = Up::Ruby::Cluster.new(app: app, **options).listen
  true
end

.shutdownObject



13
14
15
16
# File 'lib/up/ruby/rack_cluster.rb', line 13

def self.shutdown
  @server&.stop
  @server = nil
end