class DeltaTest::CLI::StatsShowCommand
Public Instance Methods
invoke!()
click to toggle source
# File lib/delta_test/cli/stats_show_command.rb, line 9 def invoke! if stats.base_commit puts 'Base commit: %s' % [stats.base_commit] puts else raise StatsNotFoundError end list.load_table!(stats.table_file_path) print_table end
list()
click to toggle source
# File lib/delta_test/cli/stats_show_command.rb, line 25 def list @list ||= RelatedSpecList.new end
print_table()
click to toggle source
# File lib/delta_test/cli/stats_show_command.rb, line 29 def print_table if list.table.any? list.table.each do |spec_file, dependencies| puts spec_file puts dependencies.each do |dependency| puts "\t#{dependency}" end puts end else puts '(no entry)' end end
stats()
click to toggle source
# File lib/delta_test/cli/stats_show_command.rb, line 21 def stats @stats ||= Stats.new end