-
-
Save cezarsa/f1ad4c5bcf5ffb5418e8 to your computer and use it in GitHub Desktop.
tsuru curl plugin
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
#!/bin/bash | |
TARGET=$(echo ${TSURU_TARGET} | sed "s|/$||g") | |
curl -sS -H"Authorization: bearer ${TSURU_TOKEN}" ${TARGET}$@ |
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
$ tsuru plugin-install curl https://gist.githubusercontent.com/cezarsa/f1ad4c5bcf5ffb5418e8/raw/curl | |
$ tsuru curl /apps | |
[{"cname":[],"deploys":... | |
$ tsuru curl /apps -X POST -d '{"name": "myapp, "platform": "python"}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment