hgomez/devops-incubator — pull request #6 by danielpetisme (2013-01-04 13:16:21+00:00)
Title: Integrate deploy2BinTray.sh script

The script permits to interact with BinTray REST API.
It requires:
* The Bintray username (aka. the _:subject_)
* The Bintray api key
* The BinTray repository name
* The RPM

The steps are:

1. Check if the package exist, if not it's created
2. Upload the rpm
3. Publish it

Remarks:
* The script doesn't do any CLI checking
* The actual functions could be exposed as shell commands (the begins of a shell BinTray toolkit?)
* For the package creation I tried to externalize the JSON description to a file (the bintray-package.json) but I didn't try it
* The RPM argument must be the RPM's filename, I failed to give a pathname (ie. /foo/bar/mybar)
* I dont't know yet how to protect the API KEY in BuildHive :(