Class: TxghServer::Webhooks::Gitlab::RequestHandler
- Inherits:
-
TxghServer::Webhooks::Git::RequestHandler
- Object
- TxghServer::Webhooks::Git::RequestHandler
- TxghServer::Webhooks::Gitlab::RequestHandler
- Defined in:
- lib/txgh-server/webhooks/gitlab/request_handler.rb
Instance Attribute Summary
Attributes inherited from TxghServer::Webhooks::Git::RequestHandler
Instance Method Summary collapse
Methods inherited from TxghServer::Webhooks::Git::RequestHandler
Constructor Details
This class inherits a constructor from TxghServer::Webhooks::Git::RequestHandler
Instance Method Details
#handle_request ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/txgh-server/webhooks/gitlab/request_handler.rb', line 7 def handle_request handle_safely do if gitlab_event == 'Push Hook' if delete_event? DeleteHandler.new(project, repo, logger, attributes).execute else PushHandler.new(project, repo, logger, attributes).execute end else respond_with_error(400, 'Unexpected event type') end end end |