class Troy::Cli
def server
def server begin handler = Rackup::Handler.pick(%i[puma thin webrick]) rescue Exception raise Error, "No Rack handler found. Install a Rack handler (e.g. puma, thing, unicorn, webrick)" end handler.run Troy::Server.new(File.join(Dir.pwd, "public")), Port: options[:port], Host: options[:host] end