Skip to content

Instantly share code, notes, and snippets.

@jezhalford
Created September 25, 2013 10:56
Show Gist options
  • Save jezhalford/6698045 to your computer and use it in GitHub Desktop.
Save jezhalford/6698045 to your computer and use it in GitHub Desktop.
#!/bin/sh
#
# Execute phing commands inside a vagrant VM, without having
# to `vagrant ssh` first.
#
CMD="cd /vagrant && phing $@"
vagrant ssh --command "cd /vagrant && $CMD"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment