Class: Polytrix::Command::List
- Defined in:
- lib/polytrix/command/list.rb
Constant Summary
Constants inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Methods included from Polytrix::Core::FileSystemHelper
#find_file, #recursive_parent_search
Methods included from StringHelpers
Methods included from StringHelpers::ClassMethods
Methods included from DefaultLogger
Methods included from DefaultLogger::ClassMethods
Constructor Details
This class inherits a constructor from Polytrix::Command::Base
Instance Method Details
#call ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/polytrix/command/list.rb', line 4 def call # Logging.mdc['command'] = 'list' setup tests = parse_subcommand(args.first) table = [ [ colorize('Suite', :green), colorize('Scenario', :green), colorize('Implementor', :green), colorize('Status', :green) ] ] table += tests.map do | challenge | [ color_pad(challenge.suite), color_pad(challenge.name), color_pad(challenge.implementor.name), format_last_action(challenge) ] end shell.print_table table end |