Skip to content

Instantly share code, notes, and snippets.

@cezarsa
Last active June 14, 2019 20:52
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cezarsa/f1ad4c5bcf5ffb5418e8 to your computer and use it in GitHub Desktop.
Save cezarsa/f1ad4c5bcf5ffb5418e8 to your computer and use it in GitHub Desktop.
tsuru curl plugin
#!/bin/bash
TARGET=$(echo ${TSURU_TARGET} | sed "s|/$||g")
curl -sS -H"Authorization: bearer ${TSURU_TOKEN}" ${TARGET}$@
$ 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