diff options
author | Jacob Vosmaer <jacob@gitlab.com> | 2017-01-02 18:59:07 +0100 |
---|---|---|
committer | Jacob Vosmaer <jacob@gitlab.com> | 2017-01-02 18:59:07 +0100 |
commit | d03e022b8816fd4193ff7a0a34e35573e8114e7f (patch) | |
tree | 1896a5c90f0eb99ecaa5fc09304cee7174657943 /bin/check | |
parent | 3fe9cea03a6384fd8f57f10e172c134ed5c0552d (diff) | |
download | gitlab-shell-http-excon.tar.gz |
WIP Use excon for HTTP requestshttp-excon
Diffstat (limited to 'bin/check')
-rwxr-xr-x | bin/check | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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" |