Mercurial > hg > soundsoftware-site
comparison lib/redmine/.svn/text-base/about.rb.svn-base @ 0:513646585e45
* Import Redmine trunk SVN rev 3859
author | Chris Cannam |
---|---|
date | Fri, 23 Jul 2010 15:52:44 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:513646585e45 |
---|---|
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 |