Sha256: 915fd53f7ba7c4cd5814448fe91842c3863a9c0c613208f428448e9ff3d3b188
Contents?: true
Size: 314 Bytes
Versions: 5
Compression:
Stored size: 314 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
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
servel-0.14.0 | lib/servel/cli.rb |
servel-0.8.0 | lib/servel/cli.rb |
servel-0.7.0 | lib/servel/cli.rb |
servel-0.6.0 | lib/servel/cli.rb |
servel-0.5.0 | lib/servel/cli.rb |