Class: Redmine::Commands::ListPrinter

Inherits:
Object
  • Object
show all
Defined in:
lib/redmine/commands/list_printer.rb

Instance Method Summary collapse

Instance Method Details



10
11
12
13
# File 'lib/redmine/commands/list_printer.rb', line 10

def banner
  puts 'RUNNING REDMINE INSTANCES:'
  puts '=========================='
end


19
20
21
# File 'lib/redmine/commands/list_printer.rb', line 19

def footer
  puts "\n\n"
end


4
5
6
7
8
# File 'lib/redmine/commands/list_printer.rb', line 4

def print(results)
  banner
  results.map { |result| print_result(result) }
  footer
end


15
16
17
# File 'lib/redmine/commands/list_printer.rb', line 15

def print_result(result)
  puts "\t#{result.name.gsub(/^redmine-run__/, '')}"
end