Forum: Ruby on Rails How to get the list of installed plugins?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Ad8b580d8004335c95d2d15518168ce3?d=identicon&s=25 Jej (Guest)
on 2008-11-12 11:39
(Received via mailing list)
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
D69d23d8e811e8ab2a8593380d6ede63?d=identicon&s=25 Jeff Emminger (jemminger)
on 2008-11-12 14:47
(Received via mailing list)
"ruby script/plugin list"
Ad8b580d8004335c95d2d15518168ce3?d=identicon&s=25 Jej (Guest)
on 2008-11-12 17:38
(Received via mailing list)
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.
D69d23d8e811e8ab2a8593380d6ede63?d=identicon&s=25 Jeff Emminger (jemminger)
on 2008-11-12 20:43
(Received via mailing list)
doh, run from your rails app root:

  list = Dir["vendor/plugins/*"]
Ad8b580d8004335c95d2d15518168ce3?d=identicon&s=25 Jej (Guest)
on 2008-11-13 09:59
(Received via mailing list)
Thanks you very much, that does the trick!

Jerome
This topic is locked and can not be replied to.