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
12
13
14
15
|
# File 'app/controllers/writefully/hooks_controller.rb', line 12
def create
self.__send__ request.["X-Github-Event"].to_sym
head :ok
end
|
#ping ⇒ Object
17
18
|
# File 'app/controllers/writefully/hooks_controller.rb', line 17
def ping
end
|
#push ⇒ Object
20
21
22
23
|
# File 'app/controllers/writefully/hooks_controller.rb', line 20
def push
Writefully.add_job :handyman, { task: :synchronize,
site_slug: body.repository.name } if branch_match?
end
|