Sha256: 98886e9959b58b54b9ffe78eeb854dfbe187740d0bf534a5766d7acc5bdf43a3
Contents?: true
Size: 469 Bytes
Versions: 3
Compression:
Stored size: 469 Bytes
Contents
require "yarn" require "rack" require "rack/handler" module Rack module Handler class Yarn def self.run(app, options={}) options = options.merge({ rack: app }) @server = ::Yarn::Server.new(options) @server.start end def self.valid_options { "Host=HOST" => "Hostname to listen on (default: 127.0.0.1)", "Port=PORT" => "Port to listen on (default: 3000)" } end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
yarn-0.1.0 | lib/rack/handler/yarn.rb |
yarn-0.0.9 | lib/rack/handler/yarn.rb |
yarn-0.0.2 | lib/rack/handler/yarn.rb |