Sha256: 190afaf64e0b64f1373d3ca4331f4aa8f0d31602c58456e4285960565f61bb82
Contents?: true
Size: 331 Bytes
Versions: 21
Compression:
Stored size: 331 Bytes
Contents
class Servel::CLI def initialize(argv) @argv = argv end def start Rack::Handler::Puma.run(Servel.build_app(path_map)) end def path_map @argv.map do |arg| root, url_root = arg.split(":" , 2) root = Pathname.new(root).realpath [root, url_root || "/"] end.to_h end end
Version data entries
21 entries across 21 versions & 1 rubygems