Skip to content
Newer
Older
100644 14 lines (12 sloc) 361 Bytes
ab697fc @technoweenie port splendid bacon hook
technoweenie authored
1 class Service::SplendidBacon < Service
7dba05c @technoweenie specify service schemas in the classes themselves
technoweenie authored
2 string :project_id, :token
3
ab697fc @technoweenie port splendid bacon hook
technoweenie authored
4 def receive_push
5 token = data['token']
6 project_id = data['project_id']
7 http.url_prefix = 'https://splendidbacon.com'
8 http_post "/api/v1/projects/#{project_id}/github" do |req|
9 req.params[:token] = token
10 req.body = {:payload => payload.to_json}
48ba4bf @matiaskorhonen Adds a service hook for Splendid Bacon.
matiaskorhonen authored
11 end
12 end
9ef1004 @technoweenie spaces
technoweenie authored
13 end
Something went wrong with that request. Please try again.