summaryrefslogtreecommitdiff
path: root/bin/check
diff options
context:
space:
mode:
authorJacob Vosmaer <jacob@gitlab.com>2017-01-02 18:59:07 +0100
committerJacob Vosmaer <jacob@gitlab.com>2017-01-02 18:59:07 +0100
commitd03e022b8816fd4193ff7a0a34e35573e8114e7f (patch)
tree1896a5c90f0eb99ecaa5fc09304cee7174657943 /bin/check
parent3fe9cea03a6384fd8f57f10e172c134ed5c0552d (diff)
downloadgitlab-shell-http-excon.tar.gz
WIP Use excon for HTTP requestshttp-excon
Diffstat (limited to 'bin/check')
-rwxr-xr-xbin/check4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/check b/bin/check
index 9585416..0803289 100755
--- a/bin/check
+++ b/bin/check
@@ -10,10 +10,10 @@ require_relative '../lib/gitlab_net'
print "Check GitLab API access: "
begin
resp = GitlabNet.new.check
- if resp.code == "200"
+ if resp.status == 200
print 'OK'
else
- abort "FAILED. code: #{resp.code}"
+ abort "FAILED. code: #{resp.status}"
end
rescue GitlabNet::ApiUnreachableError
abort "FAILED: Failed to connect to internal API"