Class: Rack::Handler::Yarn

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

Overview

Yarn webserver

Class Method Summary collapse

Class Method Details

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

Takes a Rackup file and an options Hash.



11
12
13
14
15
# File 'lib/rack/handler/yarn.rb', line 11

def self.run(app, options={})
  options = options.merge({ rack: app })
  @server = ::Yarn::Server.new(options)
  @server.start
end