summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorAsh McKenzie <amckenzie@gitlab.com>2019-10-09 02:55:52 +0000
committerAsh McKenzie <amckenzie@gitlab.com>2019-10-09 02:55:52 +0000
commit26ad6f92dc6d74b2f35b8a96705caf27054f5440 (patch)
treebe11f701523c8cf60f5b0622f148ba358c3c9081 /bin
parente28f75c8d439812f61c4cf0c0291380df4d17106 (diff)
parentba9b7c0e8acd7b3acb03086a5c1e132256fbd36e (diff)
downloadgitlab-shell-26ad6f92dc6d74b2f35b8a96705caf27054f5440.tar.gz
Merge branch '173-remove-bin-check' into 'master'
Rewrite `bin/check` in Go See merge request gitlab-org/gitlab-shell!341
Diffstat (limited to 'bin')
-rwxr-xr-xbin/check32
1 files changed, 0 insertions, 32 deletions
diff --git a/bin/check b/bin/check
deleted file mode 100755
index 6d42f9b..0000000
--- a/bin/check
+++ /dev/null
@@ -1,32 +0,0 @@
-#!/usr/bin/env ruby
-
-require_relative '../lib/gitlab_init'
-require_relative '../lib/gitlab_net'
-
-#
-# GitLab shell check task
-#
-
-print "Check GitLab API access: "
-begin
- resp = GitlabNet.new.check
-
- if resp.code != "200"
- abort "FAILED. code: #{resp.code}"
- end
-
- puts 'OK'
-
- check_values = JSON.parse(resp.body)
-
- print 'Redis available via internal API: '
- if check_values['redis']
- puts 'OK'
- else
- abort 'FAILED'
- end
-rescue GitlabNet::ApiUnreachableError
- abort "FAILED: Failed to connect to internal API"
-end
-
-puts "\n"