1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-01 12:24:28 +01:00
fab-manager/lib/fab_manager.rb

21 lines
357 B
Ruby
Raw Normal View History

2019-01-31 17:15:26 +01:00
# frozen_string_literal: true
2023-03-24 10:45:47 +01:00
load 'plugin/instance.rb'
2016-05-10 16:50:01 +02:00
2023-02-24 17:26:55 +01:00
# the FabManager application
2016-05-10 16:50:01 +02:00
module FabManager
class << self
attr_reader :plugins
end
def self.activate_plugins!
2023-02-24 17:26:55 +01:00
all_plugins = Plugin::Instance.find_all(Rails.root.join('plugins'))
2016-05-10 16:50:01 +02:00
@plugins = []
all_plugins.each do |p|
p.activate!
@plugins << p
end
end
end