Class: Tokite::HooksController
- Inherits:
-
ActionController::API
- Object
- ActionController::API
- Tokite::HooksController
- Defined in:
- app/controllers/tokite/hooks_controller.rb
Constant Summary collapse
- GITHUB_EVENT_HEADER =
"X-GitHub-Event"
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
7 8 9 10 11 |
# File 'app/controllers/tokite/hooks_controller.rb', line 7 def create logger.debug("Hook triggered: #{github_event}") Hook.fire!(github_event, request.request_parameters) render plain: "ok" end |