Vote #65265
完了Add plugins to script/about
0%
説明
@script/about@ is the fastest way to get information about a specific Redmine environment. This patch adds some information to @script/about@ to print out a list of all the installed plugins and their versions.
Example output:
About your application's environment Ruby version 1.8.6 (i486-linux) RubyGems version 1.3.1 Rails version 2.2.2 Active Record version 2.2.2 Action Pack version 2.2.2 Active Resource version 2.2.2 Action Mailer version 2.2.2 Active Support version 2.2.2 Application root /home/edavis/dev/redmine/redmine-core Environment development Database adapter mysql Database schema version 20090518163007 About your Redmine plugins Redmine Hoptoad Server plugin 0.0.1 Redmine Exception Handler plugin 0.2.0 Little Stream Software Design plugin 0.1.0 Redmine Graphs plugin 0.1.0 Redmine Schedules plugin 0.4.1 Redmine My Widgets plugin 0.1.0 Rate Plugin 0.1.0 Download Counter 0.1.0
Would anyone else find this useful?
journals
Eric Davis wrote:
> Would anyone else find this useful?
+10! :)
--------------------------------------------------------------------------------
+1
But it would be nice if this information is displayed on the /admin/info page.
--------------------------------------------------------------------------------
+1
--------------------------------------------------------------------------------
Gregor Bader wrote:
> +1
> But it would be nice if this information is displayed on the /admin/info page.
+1 to both.
--------------------------------------------------------------------------------
Gregor Bader wrote:
> But it would be nice if this information is displayed on the /admin/info page.
It's in /admin/plugins so I don't think it needs to be duplicated.
--------------------------------------------------------------------------------
Committed in r2766.
--------------------------------------------------------------------------------
Jean-Philippe Lang wrote:
> Committed in r2766.
After r2766 it seems impossible to run the script like this:
<pre>$ ./script/about</pre>
It results in the following output:
<pre>: No such file or directory</pre>
Running the script like following does work:
<pre>$ ruby script/about</pre>
Regards,
Mischa.
--------------------------------------------------------------------------------
It seems not possible to run the script without development environment:
<pre>
redmine@mozart:~/trunk> svnversion
2778
redmine@mozart:~/trunk> ruby script/about -e production
About your application's environment
Ruby version 1.8.6 (i586-linux)
RubyGems version 1.3.1
Rails version 2.2.2
Active Record version 2.2.2
Action Pack version 2.2.2
Active Resource version 2.2.2
Action Mailer version 2.2.2
Active Support version 2.2.2
Application root /home/redmine/trunk
Environment development
Database adapter mysql
Database schema version 20090503121510
About your Redmine plugins
Embedded 0.0.1
Google Analytics plugin 0.2.0
Redmine Collapse plugin 0.2.1
Redmine link 0.1.0
Redmine Graphs plugin 0.1.0
</pre>
--------------------------------------------------------------------------------
(output is after I defined a database for development too)
--------------------------------------------------------------------------------
It looks like the issue was caused by DOS line endings, converting them to unix line endings fixed @script/about@ for me. Mischa, can you retest using the fixed in r2783.
--------------------------------------------------------------------------------
Eric Davis wrote:
> It looks like the issue was caused by DOS line endings, converting them to unix line endings fixed @script/about@ for me. Mischa, can you retest using the fixed in r2783.
Just checked it with Redmine trunk r2783 and can confirm that the issue is solved by the fix.
Thanks.
--------------------------------------------------------------------------------
Merged in 0.8-stable in r2884.
--------------------------------------------------------------------------------