rails 框架
>> pp Dir.glob(File.join(Rails.configuration.plugin_paths.first,'*'))
["/home/opengoss/workspace/kkk/monit-web/vendor/plugins/upload_progress",
"/home/opengoss/workspace/kkk/monit-web/vendor/plugins/dotiw",
"/home/opengoss/workspace/kkk/monit-web/vendor/plugins/graph_template",
"/home/opengoss/workspace/kkk/monit-web/vendor/plugins/monit_ui",
"/home/opengoss/workspace/kkk/monit-web/vendor/plugins/google_charts_on_rails",
"/home/opengoss/workspace/kkk/monit-web/vendor/plugins/monit_mysql",
"/home/opengoss/workspace/kkk/monit-web/vendor/plugins/exception_logger",
"/home/opengoss/workspace/kkk/monit-web/vendor/plugins/tenant_aware",
"/home/opengoss/workspace/kkk/monit-web/vendor/plugins/preferences",
"/home/opengoss/workspace/kkk/monit-web/vendor/plugins/will_paginate",
"/home/opengoss/workspace/kkk/monit-web/vendor/plugins/restful-authentication"]
=> nil
![](http://www.cnblogs.com/Emoticons/baimantou/202015934.gif)