Last active
February 28, 2017 11:34
-
-
Save Endika/d9c5ae4cfc144171c830038aedfb2c36 to your computer and use it in GitHub Desktop.
tsuru alias
This file contains 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
alias tsuruprod='tsuru target-set prod | echo "MyProdPass" | tsuru login eiglesias@hostname.com' | |
alias tsurudev='tsuru target-set dev | echo "MyDevPass" | tsuru login eiglesias@hostname.com' | |
tsuru_cmd(){ | |
if [ $2 ]; then | |
$1 $2 | |
else | |
$1 $(python -c "import sys;print(sys.prefix.split(\"/\")[-1])") | |
fi | |
} | |
alias tsurudeploy='tsuru_cmd "tsuru app-deploy . -a "' | |
alias tsurulog='tsuru_cmd "tsuru app-log -f -a "' | |
alias tsurushell='tsuru_cmd "tsuru app-shell -a "' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment