Commit ba95015a authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Reorganize plugins dir structure

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 645dceb0
module Gitlab module Gitlab
module Plugin module Plugin
def self.files def self.files
Dir.glob(Rails.root.join('plugins/enabled/*')) Dir.glob(Rails.root.join('plugins/*')).select do |entry|
File.file?(entry)
end
end end
def self.execute_all_async(data) def self.execute_all_async(data)
files.each do |file| files.each do |file|
puts file
PluginWorker.perform_async(file, data) PluginWorker.perform_async(file, data)
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment