Skip to content

Instantly share code, notes, and snippets.

@marr
Created March 26, 2015 05:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marr/eb6bc8e8b80694c04414 to your computer and use it in GitHub Desktop.
Save marr/eb6bc8e8b80694c04414 to your computer and use it in GitHub Desktop.
#!/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