class Feedbook::PluginsManager

Public Class Methods

load_plugins(path) click to toggle source

Loads plugins and extensions from given path. @param path [String] plugins directory path

@return [NilClass] nil

# 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