Class: Rack::Handler::Trinidad

Inherits:
Object
  • Object
show all
Defined in:
lib/rack/handler/trinidad.rb

Class Method Summary collapse

Class Method Details

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



7
8
9
10
11
12
13
# File 'lib/rack/handler/trinidad.rb', line 7

def self.run(app, options={})
  opts = options.dup
  opts[:app] = app
  opts[:port] = 3000
  opts[:address] = (options[:Host] || 'localhost')
  ::Trinidad::Server.new(opts).start
end