diff options
Diffstat (limited to 'lib/gitlab_net.rb')
-rw-r--r-- | lib/gitlab_net.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/gitlab_net.rb b/lib/gitlab_net.rb index e06557c..e8377cc 100644 --- a/lib/gitlab_net.rb +++ b/lib/gitlab_net.rb @@ -93,6 +93,14 @@ class GitlabNet {} end + def notify_post_receive(repo_path) + resp = post("#{host}/notify_post_receive", repo_path: repo_path) + + resp.code == '200' + rescue + false + end + def redis_client redis_config = config.redis database = redis_config['database'] || 0 |