summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2018-02-26 13:32:14 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2018-02-26 16:06:49 +0200
commitba95015a09bc465533666b38609b4fb1e0177139 (patch)
tree84ada24323df9ff744061309600d50264698dd00
parent645dceb0a233fc523ac16611fa3fec317d29a7e1 (diff)
downloadgitlab-ce-ba95015a09bc465533666b38609b4fb1e0177139.tar.gz
Reorganize plugins dir structure
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
-rw-r--r--lib/gitlab/plugin.rb5
-rw-r--r--plugins/enabled/.gitkeep0
-rwxr-xr-xplugins/examples/save_to_file.clj (renamed from plugins/available/save_to_file.clj)0
-rwxr-xr-xplugins/examples/save_to_file.rb (renamed from plugins/available/save_to_file.rb)0
4 files changed, 3 insertions, 2 deletions
diff --git a/lib/gitlab/plugin.rb b/lib/gitlab/plugin.rb
index 1035d258907..be5d6d6b1c1 100644
--- a/lib/gitlab/plugin.rb
+++ b/lib/gitlab/plugin.rb
@@ -1,12 +1,13 @@
module Gitlab
module Plugin
def self.files
- Dir.glob(Rails.root.join('plugins/enabled/*'))
+ Dir.glob(Rails.root.join('plugins/*')).select do |entry|
+ File.file?(entry)
+ end
end
def self.execute_all_async(data)
files.each do |file|
- puts file
PluginWorker.perform_async(file, data)
end
end
diff --git a/plugins/enabled/.gitkeep b/plugins/enabled/.gitkeep
deleted file mode 100644
index e69de29bb2d..00000000000
--- a/plugins/enabled/.gitkeep
+++ /dev/null
diff --git a/plugins/available/save_to_file.clj b/plugins/examples/save_to_file.clj
index a59d83749d3..a59d83749d3 100755
--- a/plugins/available/save_to_file.clj
+++ b/plugins/examples/save_to_file.clj
diff --git a/plugins/available/save_to_file.rb b/plugins/examples/save_to_file.rb
index 61b0df9bfd6..61b0df9bfd6 100755
--- a/plugins/available/save_to_file.rb
+++ b/plugins/examples/save_to_file.rb