Sha256: cd65201fde44b4487d6ca01c7fc5a4f390d3eac741a1cb9eb6187130bc90cac1
Contents?: true
Size: 403 Bytes
Versions: 2
Compression:
Stored size: 403 Bytes
Contents
class Servel::Servel def initialize(server_root) @server_root = server_root end def start Rack::Handler::Puma.run(build_app) end def build_app server_root = @server_root Rack::Builder.new do use(Servel::Middleware, root: server_root) use Rack::Static, urls: [""], root: server_root.to_s run ->(env) do [404, {}, []] end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
servel-0.2.0 | lib/servel/servel.rb |
servel-0.1.0 | lib/servel/servel.rb |