Class: Writefully::HooksController
Defined Under Namespace
Classes: InvalidSignature
Constant Summary
collapse
- HMAC_DIGEST =
OpenSSL::Digest::Digest.new('sha1')
Instance Method Summary
collapse
#authenticate_wf_authorship!, #set_flash, #wf_authorship_signed_in?
Instance Method Details
#create ⇒ Object
11
12
13
14
|
# File 'app/controllers/writefully/hooks_controller.rb', line 11
def create
self.__send__ request.["X-Github-Event"].to_sym
head :ok
end
|
#ping ⇒ Object
16
17
|
# File 'app/controllers/writefully/hooks_controller.rb', line 16
def ping
end
|
#push ⇒ Object
19
20
21
22
|
# File 'app/controllers/writefully/hooks_controller.rb', line 19
def push
Writefully.add_job :handyman, { task: :synchronize,
site_slug: body.repository.name } if branch_match?
end
|