Skip to content

Instantly share code, notes, and snippets.

@dannymcc
Created October 29, 2012 20:00
Show Gist options
  • Save dannymcc/3976163 to your computer and use it in GitHub Desktop.
Save dannymcc/3976163 to your computer and use it in GitHub Desktop.
def deploy_receive
if request.get?
render :text => "hello"
elsif request.post?
deploy_payload = JSON.parse(params[:payload])
Activity.create(:action => 'deployed a change', :details => "deploy_payload['identifier'] and deploy_payload['name']", :user_id => '1')
render :text => "success"
else
render :text => "error"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment