@@ -0,0 +1,16 | |||
|
1 | module Redmine | |
|
2 | class About | |
|
3 | def self.print_plugin_info | |
|
4 | plugins = Redmine::Plugin.registered_plugins | |
|
5 | ||
|
6 | if !plugins.empty? | |
|
7 | column_with = plugins.map {|internal_name, plugin| plugin.name.length}.max | |
|
8 | puts "\nAbout your Redmine plugins" | |
|
9 | ||
|
10 | plugins.each do |internal_name, plugin| | |
|
11 | puts sprintf("%-#{column_with}s %s", plugin.name, plugin.version) | |
|
12 | end | |
|
13 | end | |
|
14 | end | |
|
15 | end | |
|
16 | end |
General Comments 0
You need to be logged in to leave comments.
Login now