summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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