Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
10 lines (8 sloc) 285 Bytes
service :flowdock do |data, payload|
raise GitHub::ServiceConfigurationError, "Missing token" if data['token'].to_s.empty?
url = URI.parse("http://api.flowdock.com/v1/git")
Net::HTTP.post_form(url, {
:token => data['token'],
:payload => JSON.generate(payload),
})
end