Method: DBGeni::Plugin#load_plugins
- Defined in:
- lib/dbgeni/plugin.rb
#load_plugins(path) ⇒ Object
46 47 48 49 50 51 52 53 54 55 |
# File 'lib/dbgeni/plugin.rb', line 46 def load_plugins(path) begin files = Dir.entries(path).grep(/\.rb$/).sort rescue Errno::ENOENT, Errno::EACCES => e raise DBGeni::PluginDirectoryNotAccessible, e.to_s end files.each do |f| load_plugin File.join(path, f) end end |