summaryrefslogtreecommitdiff
path: root/bin/check
diff options
context:
space:
mode:
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"