Created
March 26, 2015 05:22
-
-
Save marr/eb6bc8e8b80694c04414 to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
c() { | |
for host in staging-api{1..3}; do | |
printf "host: $host\t" | |
ssh $host 'printf "site: %s api: %s www: %s\n" "$(</srv/site/current/REVISION)" "$(</srv/api/current/REVISION)" "$(</srv/www/current/REVISION)"' | |
done | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment