Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2018-02-28 13:16:23 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2018-02-28 13:16:23 +0300
commit2577ff7fd656f301c4b1909f0a1c358c8c30a614 (patch)
treea7c04e89e47df5610fdd189597c58d48f9075e76 /lib/tasks/plugins.rake
parent4eed9a12216296709306ce29faf607d8aed2a913 (diff)
Refactor plugins feature and make some doc improvements
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'lib/tasks/plugins.rake')
-rw-r--r--lib/tasks/plugins.rake8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/tasks/plugins.rake b/lib/tasks/plugins.rake
index 11c41f13614..7a9de3afbec 100644
--- a/lib/tasks/plugins.rake
+++ b/lib/tasks/plugins.rake
@@ -4,12 +4,12 @@ namespace :plugins do
puts 'Validating plugins from /plugins directory'
Gitlab::Plugin.files.each do |file|
- result = Gitlab::Plugin.execute(file, Gitlab::DataBuilder::Push::SAMPLE_DATA)
+ success, message = Gitlab::Plugin.execute(file, Gitlab::DataBuilder::Push::SAMPLE_DATA)
- if result
- puts "* #{file} succeed (zero exit code)"
+ if success
+ puts "* #{file} succeed (zero exit code)."
else
- puts "* #{file} failure (non-zero exit code)"
+ puts "* #{file} failure (non-zero exit code). #{message}"
end
end
end