Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

21 lines (17 sloc) 0.368 kb
class Service::Railsbp < Service
string :railsbp_url, :token
white_list :railsbp_url
def receive_push
http_post railsbp_url, :token => token, :payload => payload.to_json
end
def railsbp_url
if !(url = data["railsbp_url"].to_s).empty?
url.strip
else
"https://railsbp.com"
end
end
def token
data['token'].strip
end
end
Jump to Line
Something went wrong with that request. Please try again.