lib/gloo/web_svr/routing/show_routes.rb in gloo-3.3.0 vs lib/gloo/web_svr/routing/show_routes.rb in gloo-3.4.0

- old
+ new

@@ -1,11 +1,10 @@ # Author:: Eric Crane (mailto:eric.crane@mac.com) -# Copyright:: Copyright (c) 20124 Eric Crane. All rights reserved. +# Copyright:: Copyright (c) 2024 Eric Crane. All rights reserved. # # A helper class for to show routes for a running app. # -require 'tty-table' module Gloo module WebSvr module Routing class ShowRoutes @@ -75,14 +74,12 @@ # # Show the Routes title. # def show_table - @log.show "\n\tRoutes in Running Web App\n", :white - - table = TTY::Table.new( headers, @found_routes ) - renderer = TTY::Table::Renderer::Unicode.new( table, padding: [0,1] ) - puts renderer.render + puts RETURN + title = "Routes in Running Web App" + @engine.platform.table.show headers, @found_routes, title puts RETURN end # # Get the table headers.