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
path: root/lib/tasks
diff options
context:
space:
mode:
authorJacob Vosmaer (GitLab) <jacob@gitlab.com>2018-04-27 14:01:54 +0300
committerGrzegorz Bizon <grzegorz@gitlab.com>2018-04-27 14:01:54 +0300
commit7da1b4cbf1ae5e0e0008a27f260c49160a63c81e (patch)
tree887ea824e5fe3b7177285368ea1b006b8218c201 /lib/tasks
parent4fe338313358dbbf835513f96e6a06d0649f2a0c (diff)
Add gitlab-pages admin ping rake task
Diffstat (limited to 'lib/tasks')
-rw-r--r--lib/tasks/gitlab/pages.rake9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/tasks/gitlab/pages.rake b/lib/tasks/gitlab/pages.rake
new file mode 100644
index 00000000000..100e480bd66
--- /dev/null
+++ b/lib/tasks/gitlab/pages.rake
@@ -0,0 +1,9 @@
+namespace :gitlab do
+ namespace :pages do
+ desc 'Ping the pages admin API'
+ task admin_ping: :gitlab_environment do
+ Gitlab::PagesClient.ping
+ puts "OK: gitlab-pages admin API is reachable"
+ end
+ end
+end