1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-11-30 11:24:21 +01:00
fab-manager/lib/fab_manager.rb
2019-01-31 17:15:26 +01:00

20 lines
336 B
Ruby

# frozen_string_literal: true
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