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, = {}) raise "already running" if @server @server = Up::Ruby::Cluster.new(app: app, **).listen true end |
.shutdown ⇒ Object
13 14 15 16 |
# File 'lib/up/ruby/rack_cluster.rb', line 13 def self.shutdown @server&.stop @server = nil end |