Class: MiddlewareCli::List
- Inherits:
-
Object
- Object
- MiddlewareCli::List
- Extended by:
- App
- Defined in:
- lib/middleware-cli/list.rb
Constant Summary
Constants included from App
Class Method Summary collapse
Methods included from App
app_path, copy_file, filtered_list, is_route_middleware?, load_application, middleware_list, relative_app_path
Class Method Details
.display ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/middleware-cli/list.rb', line 10 def display table = Terminal::Table.new do |t| t << ['S/n', 'Middleware Name'] t << :separator middleware_list do |middleware, index| t.add_row [index , middleware] end t << :separator t << ['Total', "#{filtered_list.count} Middlewares"] end puts table end |