Class: Redmine::Commands::ListPrinter
- Inherits:
-
Object
- Object
- Redmine::Commands::ListPrinter
- Defined in:
- lib/redmine/commands/list_printer.rb
Instance Method Summary collapse
Instance Method Details
#banner ⇒ Object
10 11 12 13 |
# File 'lib/redmine/commands/list_printer.rb', line 10 def puts 'RUNNING REDMINE INSTANCES:' puts '==========================' end |
#footer ⇒ Object
19 20 21 |
# File 'lib/redmine/commands/list_printer.rb', line 19 def puts "\n\n" end |
#print(results) ⇒ Object
4 5 6 7 8 |
# File 'lib/redmine/commands/list_printer.rb', line 4 def print(results) results.map { |result| print_result(result) } end |
#print_result(result) ⇒ Object
15 16 17 |
# File 'lib/redmine/commands/list_printer.rb', line 15 def print_result(result) puts "\t#{result.name.gsub(/^redmine-run__/, '')}" end |