mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-10 21:24:20 +01:00
18 lines
305 B
Ruby
18 lines
305 B
Ruby
|
require_dependency 'plugin/instance'
|
||
|
|
||
|
module FabManager
|
||
|
class << self
|
||
|
attr_reader :plugins
|
||
|
end
|
||
|
|
||
|
def self.activate_plugins!
|
||
|
all_plugins = Plugin::Instance.find_all("#{Rails.root}/plugins")
|
||
|
|
||
|
@plugins = []
|
||
|
all_plugins.each do |p|
|
||
|
p.activate!
|
||
|
@plugins << p
|
||
|
end
|
||
|
end
|
||
|
end
|