How to get the list of installed plugins?


#1

Hi all,

Is there a simple way to get a list of installed plugins in an app? I
need name and version of each running plugin. I saw some methods in
the API, but related to the loading of plugins.

Thanks,
Jej


#2

“ruby script/plugin list”


#3

Thanks for that, but this command doesn’t list the plugins I have
under /myapp/vendor/plugins

I need this to make an about page that gives the rails version,
installed plugins, etc.


#4

doh, run from your rails app root:

list = Dir[“vendor/plugins/*”]


#5

Thanks you very much, that does the trick!

Jerome