Class: Feedbook::PluginsManager
- Inherits:
-
Object
- Object
- Feedbook::PluginsManager
- Defined in:
- lib/feedbook/plugins_manager.rb
Class Method Summary collapse
-
.load_plugins(path) ⇒ NilClass
Loads plugins and extensions from given path.
Class Method Details
.load_plugins(path) ⇒ NilClass
Loads plugins and extensions from given path.
8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/feedbook/plugins_manager.rb', line 8 def self.load_plugins(path) print "Loading plugins from #{path}... " if File.directory? path Dir[File.join(path, '**', '*.rb')].sort.each do |f| require f end puts 'completed.' else puts "Plugins directory could not be found in #{path}." end end |