diff options
Diffstat (limited to 'lib/gitlab_net.rb')
-rw-r--r-- | lib/gitlab_net.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/gitlab_net.rb b/lib/gitlab_net.rb index c178927..9bfc0d5 100644 --- a/lib/gitlab_net.rb +++ b/lib/gitlab_net.rb @@ -41,6 +41,15 @@ class GitlabNet JSON.parse(resp.body) rescue nil end + def broadcast_message + resp = get("#{host}/broadcast_message") + if resp.code == '200' + JSON.parse(resp.body) rescue nil + else + nil + end + end + def check get("#{host}/check") end |