Created
October 29, 2012 19:58
-
-
Save dannymcc/3976155 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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'], :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