summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorNick Thomas <nick@gitlab.com>2019-10-03 18:11:56 +0100
committerNick Thomas <nick@gitlab.com>2019-10-08 13:13:59 +0100
commitba9b7c0e8acd7b3acb03086a5c1e132256fbd36e (patch)
treec51ad0a6abc344cdb51b3681bd429b612f553ed0 /bin
parent542b26139243c8fbed2af669d081f10c4ebbae40 (diff)
downloadgitlab-shell-ba9b7c0e8acd7b3acb03086a5c1e132256fbd36e.tar.gz
Rewrite bin/check in Go
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"